oden/fine/tests/expression/errors/no_method_variables.fine
John Doty 1199646e29 [fine] File name in error messages
Going to need to normalize that name though, because right now it
really *really* sucks to have a big \\?\ kinda name. Probably
normalize it relative to the base directory.
2024-02-15 06:36:14 -08:00

11 lines
171 B
Text

class Foo {
fun bar(self) {}
}
fun test() {
let obj = new Foo {};
let f = obj.bar;
}
// @expect-errors:
// | __test__:7:6: methods cannot be assigned to variables