Fixed codegen for non-public SAM-adapters

This commit is contained in:
Valentin Kipyatkov
2015-07-29 23:22:15 +03:00
parent 5bceefe8df
commit 9150c53832
4 changed files with 28 additions and 0 deletions
@@ -0,0 +1,5 @@
class JavaClass<T> {
protected void execute(T t, Runnable r) {
r.run();
}
}
@@ -0,0 +1,13 @@
class KotlinClass : JavaClass<String>() {
fun doIt(): String {
var result = ""
execute("") {
result = "OK"
}
return result
}
}
fun box(): String {
return KotlinClass().doIt()
}