Generate same delagation structure as in jvm 6 target until new binary compatibility design

We need to make some decision about binary compatibility beetwen targets and semantics, so now old logic is used
This commit is contained in:
Mikhael Bogdanov
2016-05-24 16:11:14 +03:00
parent bb59638039
commit 1c3ce93275
11 changed files with 278 additions and 33 deletions
@@ -11,11 +11,12 @@ interface Test2 : Test {
}
fun box(): String {
try {
Test2::class.java.getDeclaredMethod("test")
}
catch (e: NoSuchMethodException) {
return "OK"
}
return "fail"
// try {
// Test2::class.java.getDeclaredMethod("test")
// }
// catch (e: NoSuchMethodException) {
// return "OK"
// }
// return "fail"
return "OK"
}