Closed
Description
Minimized code
class Bag extends reflect.Selectable
@main def Test =
val x = new Bag:
def f1() = 23
println(x.f1)
Output
-- [E100] Syntax Error: example.scala:7:12 ------------------------------------
7 | println(x.f1)
| ^^^^
| <none> must be called with () argument
Expectation
method f1 must be called with () argument