Retoor software development Projects Research SearchXNG
Register Sign In

8 lines
97 B
Plaintext
Raw Normal View History

feat: implement setter syntax and assignment in named method calls Add support for setter methods in the compiler by detecting '=' after a method name in namedCall, compiling the assigned value, and emitting the setter instruction. Includes new test cases for instance setters, static setters, assignment associativity, grouping, operator precedence errors, setter result values, and same-name getter/setter methods. Also updates the super call test with a TODO for super setter calls.
2013-12-20 16:05:31 +01:00
class Foo {
static bar = value {
io.write(value)
}
}
Foo.bar = "value" // expect: value
Reference in New Issue Copy Permalink
d9255666f4
wren/test/setter/static.wren
Response time: 27ms
Mail Licenses API