[FIR-TEST] Move analysis tests to separate module
This commit is contained in:
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
// !DUMP_CFG
|
||||
interface A {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
fun takeA(a: A): Boolean = true
|
||||
|
||||
fun test(a: Any) {
|
||||
if (takeA(a as? A ?: return)) {
|
||||
a.foo()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user