Closed
Description
Minimized code
class Bag extends reflect.Selectable
@main def Test =
val x = new Bag:
val f1 = 23
println(x.f1())
Output
-- [E050] Type Error: example.scala:7:10 ---------------------------------------
7 | println(x.f1())
| ^^^^
| method $asInstanceOf$ in class Any does not take parameters
Expectation
value f1 does not take parameters