KT-14032 related: if expression to elvis now handles also is and !is checks
This commit is contained in:
committed by
Mikhail Glukhikh
parent
8188bb1e54
commit
121f0ec810
@@ -0,0 +1,5 @@
|
||||
class My(val x: Int)
|
||||
|
||||
fun foo(arg: Any?): My {
|
||||
return if (<caret>arg !is My) My(42) else arg
|
||||
}
|
||||
Reference in New Issue
Block a user