Files
kotlin-fork/idea/testData/quickfix/autoImports/mismatchingArgs/lambdaArgument.test
T
2019-05-06 13:59:24 +03:00

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>}
}
}