Don't mark signature as inapplicable when argument is empty/incomplete
This will improve the usability when using named arguments where incomplete arguments can't be mapped to a parameter simply by position. ^KT-24172 Fixed
This commit is contained in:
committed by
Vladimir Dolzhenko
parent
343010a833
commit
78493395c3
@@ -0,0 +1,10 @@
|
||||
open class A(x: Int) {
|
||||
fun m(x: Int, y: Boolean) = 1
|
||||
|
||||
fun d(x: Int) {
|
||||
m(y = false, <caret>)
|
||||
}
|
||||
}
|
||||
/*
|
||||
Text: ([y: Boolean], [x: Int]), Disabled: false, Strikeout: false, Green: true
|
||||
*/
|
||||
@@ -1,3 +1,4 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:-TrailingCommas
|
||||
open class A(x: Int) {
|
||||
fun m(x: Int, y: Boolean) = 2
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
open class A(x: Int) {
|
||||
fun m(x: Int, y: Int) = 2
|
||||
|
||||
fun d(x: Int) {
|
||||
m(1, 2, 3<caret>)
|
||||
}
|
||||
}
|
||||
//Text: (x: Int, y: Int), Disabled: true, Strikeout: false, Green: true
|
||||
@@ -0,0 +1,10 @@
|
||||
open class A(x: Int) {
|
||||
fun m(x: Int, y: Boolean) = 1
|
||||
|
||||
fun d(x: Int) {
|
||||
m(1, false,<caret>)
|
||||
}
|
||||
}
|
||||
/*
|
||||
Text: (x: Int, y: Boolean), Disabled: false, Strikeout: false, Green: true
|
||||
*/
|
||||
@@ -1,3 +1,4 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:-TrailingCommas
|
||||
// See KT-14484
|
||||
|
||||
class C {
|
||||
|
||||
Reference in New Issue
Block a user