Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
ec80c21fd118667fdb2e851da7eea5d76d95eb52
/
.
/
idea
/
testData
/
quickfix
/
expressions
/
removeUselessIsCheckInWhenNegate.kt
blob: 6a8f42699ecb6714fa2f71079495e143ecdea1de [
file
] [
log
] [
blame
]
// "Remove useless is check" "true"
interface
Base
interface
Derived
:
Base
fun foo
(
bar
:
Base
):
Int
{
return
when
(
bar
)
{
is
Derived
->
0
<caret>
!
is
Base
->
42
else
->
1
}
}