Files
kotlin-fork/idea/testData/intentions/attributeCallReplacements/replaceGetIntention/invalidArgument.kt
T

10 lines
221 B
Kotlin

// SHOULD_FAIL_WITH: invalid.arguments
// ERROR: Cannot find a parameter with this name: c
fun test() {
class Test{
fun get(a: Int=1, b: Int=2) : Int = 0
}
val test = Test()
test.g<caret>et(c=3)
}