[FIR-TEST] Move analysis tests to separate module

This commit is contained in:
Dmitriy Novozhilov
2020-03-18 15:10:46 +03:00
parent 3a479d5d16
commit cc07ae96b3
1477 changed files with 1001 additions and 980 deletions
@@ -0,0 +1,18 @@
// !DUMP_CFG
fun Any.test_1(): Int = when (this) {
is List<*> -> this.size
is String -> length
else -> 0
}
fun Any.test_2(): Int = when (val x = this) {
is List<*> -> {
x.size
this.size
}
is String -> {
x.length
length
}
else -> 0
}