Files
kotlin-fork/idea/testData/quickfix/autoImports/callWithTrailingComma.after.kt
T
2019-11-17 15:19:28 +03:00

20 lines
420 B
Kotlin
Vendored

// "Import" "true"
// 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'
// COMPILER_ARGUMENTS: -XXLanguage:+TrailingCommas
package main
import other.foo
class X {
fun foo(p: String) {
}
fun f(p: Int) {
foo(<selection><caret></selection>p, )
}
}