[JS IR BE] Reflection support

This commit is contained in:
Svyatoslav Kuzmich
2018-08-05 13:09:31 +03:00
parent 1471fe08d7
commit 392ad521fd
75 changed files with 563 additions and 104 deletions
@@ -1,12 +1,12 @@
// IGNORE_BACKEND: JVM_IR
inline fun run(block: () -> Unit) = block()
inline fun run2(block: () -> Unit) = block()
class A {
val prop: Int
constructor(arg: Boolean) {
if (arg) {
prop = 1
run { return }
run2 { return }
throw RuntimeException("fail 0")
}
prop = 2