1 2 3 4 5 6 7
object Test extends dotty.runtime.LegacyApp { object m { val f = { x: Unit => () } Console.println("OK") } m; }