10 lines
237 B
Kotlin
10 lines
237 B
Kotlin
// SHOULD_FAIL_WITH: invalid.arguments
|
|
// ERROR: Cannot find a parameter with this name: c
|
|
fun test() {
|
|
class Test{
|
|
fun contains(a: Int=1, b: Int=2): Boolean = true
|
|
}
|
|
val test = Test()
|
|
test.c<caret>ontains(c=3)
|
|
}
|