Mark used parameters as disabled in parameter info popup
When using named arguments the IDE might be unable to map the current argument to a parameter. In that case mark already used parameters as disabled. That way developers can easily see which parameters have not been used yet. ^KTIJ-128 Fixed
This commit is contained in:
committed by
Vladimir Dolzhenko
parent
81339d54eb
commit
7755d9fe24
@@ -6,5 +6,5 @@ open class A(x: Int) {
|
||||
}
|
||||
}
|
||||
/*
|
||||
Text: ([y: Boolean], [x: Int]), Disabled: false, Strikeout: false, Green: true
|
||||
Text: (<disabled>[y: Boolean],</disabled><highlight> </highlight>[x: Int]), Disabled: false, Strikeout: false, Green: true
|
||||
*/
|
||||
@@ -0,0 +1,10 @@
|
||||
open class A(x: Int) {
|
||||
fun m(a: String = "a", b: String = "b", c: String = "c", d: String = "d") = 1
|
||||
|
||||
fun d(x: Int) {
|
||||
m(b = "x", d = "x", <caret>)
|
||||
}
|
||||
}
|
||||
/*
|
||||
Text: (<disabled>[b: String = "b"], [d: String = "d"],</disabled><highlight> </highlight>[a: String = "a"], [c: String = "c"]), Disabled: false, Strikeout: false, Green: true
|
||||
*/
|
||||
Reference in New Issue
Block a user