Closed
Description
Both scalac and dotty rejects following code with the error package meta is not a value
:
package object meta {
def apply(x: Int): Int = x * x
}
class Test {
def f = meta {
5 + 4
}
}
As discussed with @xeno-by , it would be good to support this usage.