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

18 lines
379 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
class X {
fun foo(p: String) {
}
fun f(p: Int) {
foo(<caret>p, )
}
}