If then to elvis: now not applicable for is with type unrelated to original #KT-14520 Fixed
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// IS_APPLICABLE: false
|
||||
|
||||
interface A
|
||||
interface B
|
||||
|
||||
fun prepare(x: A) = x
|
||||
fun use(x: A) {}
|
||||
|
||||
fun test(x: A) {
|
||||
val xx = <caret>if (x is B) x else prepare(x)
|
||||
use(xx)
|
||||
}
|
||||
Reference in New Issue
Block a user