Files
kotlin-fork/idea/testData/quickfix/addStarProjections/when/beforeUnqualifiedMapOneArg.kt
T
2013-05-16 16:31:43 +04:00

15 lines
426 B
Kotlin

// "Add '<*, *>'" "false"
// "Add '<*>'" "false"
// ERROR: 2 type arguments expected
// ACTION: Disable 'Eliminate Argument of 'when''
// ACTION: Disable 'Replace 'when' with 'if''
// ACTION: Edit intention settings
// ACTION: Edit intention settings
// ACTION: Eliminate argument of 'when'
// ACTION: Replace 'when' with 'if'
public fun foo(a: Any) {
when (a) {
is <caret>Map<Int> -> {}
else -> {}
}
}