Files
kotlin-fork/idea/testData/inspectionsLocal/conventionNameCalls/replaceGetOrSet/duplicateArguments.kt
T
2017-12-26 18:39:47 +03:00

11 lines
260 B
Kotlin
Vendored

// PROBLEM: none
// ERROR: An argument is already passed for this parameter
// ERROR: No value passed for parameter 'b'
fun test() {
class Test{
operator fun get(a: Int, b: Int) : Int = 0
}
val test = Test()
test.g<caret>et(a=0, a=1)
}