// REPL_MODE: true foo.forEach { // ERROR: error: unresolved reference: foo... 1 + 1 } fun goo(a: String) { // ERROR: error: unresolved reference: goo... super.goo(a) } /** unresolvedMultiline.kts:3 error: unresolved reference: foo foo.forEach { ^ error: cannot choose among the following candidates without completing type inference: @HidesMembers public inline fun Iterable.forEach(action: (???) -> Unit): Unit defined in kotlin.collections @HidesMembers public inline fun Map.forEach(action: (Map.Entry) -> Unit): Unit defined in kotlin.collections foo.forEach { ^ */ /** unresolvedMultiline.kts:7 error: unresolved reference: goo super.goo(a) ^ */