20 lines
709 B
Plaintext
Vendored
20 lines
709 B
Plaintext
Vendored
// 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: overload resolution ambiguity:
|
|
public inline fun <T> Iterable<TypeVariable(T)>.forEach(action: (TypeVariable(T)) -> Unit): Unit defined in kotlin.collections
|
|
public inline fun <K, V> Map<out TypeVariable(K), TypeVariable(V)>.forEach(action: (Map.Entry<TypeVariable(K), TypeVariable(V)>) -> Unit): Unit defined in kotlin.collections
|
|
foo.forEach {
|
|
^ */
|
|
/** unresolvedMultiline.kts:7 error: unresolved reference: goo
|
|
super.goo(a)
|
|
^ */ |