oden/fine/tests/expression/errors/class_as_a_variable.fine

8 lines
No EOL
183 B
Text

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