[FIR-TEST] Move analysis tests to separate module
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
// !DUMP_CFG
|
||||
inline fun run(block: () -> Unit) {
|
||||
block()
|
||||
}
|
||||
|
||||
val x1 = 1
|
||||
|
||||
var x2: Int = 1
|
||||
get() = 1
|
||||
set(value) {
|
||||
field = 1
|
||||
}
|
||||
|
||||
val x3 = run {
|
||||
fun foo() {
|
||||
val c = 1 + 1
|
||||
throw Exception()
|
||||
}
|
||||
|
||||
class LocalClass {
|
||||
init {
|
||||
throw Exception()
|
||||
1
|
||||
}
|
||||
}
|
||||
|
||||
throw Exception()
|
||||
}
|
||||
get() {
|
||||
class LocalClass {
|
||||
init {
|
||||
throw Exception()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
val x4 = try {
|
||||
1
|
||||
} catch (e: Exception) {
|
||||
2
|
||||
} finally {
|
||||
0
|
||||
}
|
||||
Reference in New Issue
Block a user