Setters!
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
class Foo {
|
||||
bar = value {
|
||||
io.write(value)
|
||||
}
|
||||
}
|
||||
|
||||
var foo = new Foo
|
||||
foo.bar = "value" // expect: value
|
||||
Reference in New Issue
Block a user