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