62d204f4d6
^KT-34743 Fixed
27 lines
511 B
Plaintext
Vendored
27 lines
511 B
Plaintext
Vendored
// FILE: first.before.kt
|
|
// "Import" "false"
|
|
// ERROR: The feature "trailing commas" is only available since language version 1.4
|
|
// ERROR: Type mismatch: inferred type is Int but String was expected
|
|
// ACTION: Add 'toString()' call
|
|
// ACTION: Change parameter 'p' type of function '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) {
|
|
}
|