42 lines
640 B
Plaintext
Vendored
42 lines
640 B
Plaintext
Vendored
// FILE: first.before.kt
|
|
// "Import" "true"
|
|
// ERROR: Type mismatch: inferred type is () -> Unit but Int was expected
|
|
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
|
|
|
|
package main
|
|
|
|
class X {
|
|
fun foo(p: Int) {
|
|
}
|
|
|
|
fun f() {
|
|
foo {<caret>}
|
|
}
|
|
}
|
|
|
|
// FILE: second.kt
|
|
package other
|
|
|
|
import main.X
|
|
|
|
fun X.foo(filter: (String) -> Boolean){}
|
|
|
|
// FILE: first.after.kt
|
|
// "Import" "true"
|
|
// ERROR: Type mismatch: inferred type is () -> Unit but Int was expected
|
|
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
|
|
|
|
package main
|
|
|
|
import other.foo
|
|
|
|
class X {
|
|
fun foo(p: Int) {
|
|
}
|
|
|
|
fun f() {
|
|
foo {<caret>}
|
|
}
|
|
}
|
|
|