summaryrefslogtreecommitdiff
path: root/plugins/kotlin/idea/tests/testData/parameterInfo/functionCall/MixedNamedArguments2.kt
blob: 0ce703d4ebea86575ee84d26d63b0fd0d867fe55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// COMPILER_ARGUMENTS: -XXLanguage:-MixedNamedArgumentsInTheirOwnPosition

open class A(x: Int) {
    fun m(x: Boolean, y: Int) = 1
    fun m(x: Boolean, y: Int, z: Int) = 2

    fun d(x: Int) {
        m(false, y = 23<caret>)
    }
}
/*
Text: (x: Boolean, <highlight>[y: Int]</highlight>), Disabled: false, Strikeout: false, Green: true
Text: (x: Boolean, <highlight>[y: Int]</highlight>, [z: Int]), Disabled: false, Strikeout: false, Green: false
*/