Files
kotlin-fork/idea/testData/quickfix/autoImports/mismatchingArgs/notForIncompleteCall.test
T
Mikhail Glukhikh d08b18f5f8 Introduce "use expression body" inspection #KT-16063 Fixed
Converted from the relevant intention
Reported cases: one-liners, whens
Also, more exact caret detection in local inspection tests
2017-07-07 18:15:06 +03:00

26 lines
433 B
Plaintext
Vendored

// FILE: first.before.kt
// "Import" "false"
// ERROR: Type mismatch: inferred type is Int but String was expected
// ACTION: Add 'toString()' call
// ACTION: Change parameter 'p' type of function 'main.X.foo' to 'Int'
// ACTION: Create function 'foo'
package main
class X {
fun foo(p: String) {
}
fun f(p: Int) {
foo(<caret>p, )
}
}
// FILE: second.kt
package other
import main.X
fun X.foo(p: Int) {
}