Put not-null original type as last possible smart cast target
This fixes muted tests testSmartCast (IDE highlighting) and
testNestedSealed (Diagnostics).
Together with commit 555b3f12 this makes #KT-15901 Fixed
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ fun test(a: A?) {
|
||||
}
|
||||
|
||||
if (a is B && a is C) {
|
||||
<info descr="Smart cast to A">a</info>.foo()
|
||||
<info descr="Smart cast to B">a</info>.foo()
|
||||
}
|
||||
|
||||
if (a is B? && a is C?) {
|
||||
|
||||
Reference in New Issue
Block a user