forked from Mirror/wren
Use "construct" instead of "this" to define constructors.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
// Infinite iterator demonstrating that Sequence.map is not eager
|
||||
class FibIterator {
|
||||
this new() {
|
||||
construct new() {
|
||||
_current = 0
|
||||
_next = 1
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Infinite iterator demonstrating that Sequence.where is not eager
|
||||
class FibIterator {
|
||||
this new() {
|
||||
construct new() {
|
||||
_current = 0
|
||||
_next = 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user