d08b18f5f8
Converted from the relevant intention Reported cases: one-liners, whens Also, more exact caret detection in local inspection tests
26 lines
433 B
Plaintext
Vendored
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) {
|
|
}
|