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