JVM IR: support noarg compiler plugin

#KT-41265 Fixed
This commit is contained in:
Alexander Udalov
2020-11-25 22:23:22 +01:00
parent a06bffc4b9
commit 25c228297a
21 changed files with 483 additions and 61 deletions
@@ -11,20 +11,15 @@ class Test(val a: String) {
}
fun box(): String {
try {
val test = Test::class.java.newInstance()
val test = Test::class.java.newInstance()
if (test.x != 0) {
return "Bad 5"
}
if (test.y != null) {
return "Bad Hello, world!"
}
return "OK"
} catch (e: Throwable) {
e.printStackTrace()
return "Fail"
if (test.x != 0) {
return "Bad 5"
}
}
if (test.y != null) {
return "Bad Hello, world!"
}
return "OK"
}