[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
//KT-5182 Data flow info is lost for 'when' branches
|
||||
|
||||
open class A
|
||||
|
||||
class B: A() {
|
||||
fun foo() = 1
|
||||
}
|
||||
|
||||
fun foo(a: A) = when {
|
||||
a !is B -> 2
|
||||
true -> a.foo() //'foo' is unresolved, smart cast doesn't work
|
||||
else -> a.foo()
|
||||
}
|
||||
Reference in New Issue
Block a user