Add when support for USELESS_IS_CHECK quick fix, related to KT-18965
This commit is contained in:
committed by
Mikhail Glukhikh
parent
e0aca97f9f
commit
f42808af94
+12
@@ -0,0 +1,12 @@
|
||||
// "Remove useless is check" "true"
|
||||
|
||||
interface Base
|
||||
interface Derived: Base
|
||||
|
||||
fun foo(bar: Base):Int {
|
||||
return when {
|
||||
bar is Derived -> 0
|
||||
true -> 42
|
||||
else -> 1
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user