Fix negative quickfix tests which use when
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
// "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> -> {}
|
||||
|
||||
@@ -3,6 +3,9 @@
|
||||
// ERROR: 'else' entry must be the last one in a when-expression
|
||||
// ERROR: Unreachable code
|
||||
// ERROR: Unreachable code
|
||||
// ACTION: Disable 'Eliminate Argument of 'when''
|
||||
// ACTION: Edit intention settings
|
||||
// ACTION: Eliminate argument of 'when'
|
||||
package foo
|
||||
|
||||
fun foo() {
|
||||
|
||||
Reference in New Issue
Block a user