Files
kotlin-fork/idea/testData/quickfix/autoImports/mismatchingArgs/notForIncompleteCall.test
T
victor.petukhov 62d204f4d6 Support trailing comma
^KT-34743 Fixed
2019-11-01 19:40:20 +03:00

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