Fixed codegen for non-public SAM-adapters
This commit is contained in:
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user