Don't generate delegation to jvm8 default methods

This commit is contained in:
Michael Bogdanov
2016-09-12 14:35:20 +03:00
parent c19e035f91
commit d9bb519b76
6 changed files with 25 additions and 35 deletions
@@ -11,13 +11,11 @@ interface Test2 : Test {
}
fun box(): String {
// TODO: enable this test once the required behavior is specified
// try {
// Test2::class.java.getDeclaredMethod("test")
// }
// catch (e: NoSuchMethodException) {
// return "OK"
// }
// return "fail"
return "OK"
try {
Test2::class.java.getDeclaredMethod("test")
}
catch (e: NoSuchMethodException) {
return "OK"
}
return "fail"
}