oden/fine/tests/expression/errors/class_as_a_variable.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

8 lines
No EOL
192 B
Text

class Foo {}
fun test() -> f64 {
Foo + 23
}
// @expect-errors:
// | __test__:4:6: cannot apply binary operator '+' to expressions of type 'class Foo' (on the left) and 'f64' (on the right)