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