class Foo { construct new() {} bar=(value) { "result" } } var foo = Foo.new() System.print(foo.bar = "value") // expect: result