// WITH_RUNTIME package test data class My(val x: Int) fun foo(f: () -> My) {} fun test() { foo( fun(): My { return My(42) } ) }