mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Added tests with SAM adapter inherited in Kotlin class.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class JavaClass {
|
||||
public void run(Runnable r) {
|
||||
r.run();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class KotlinSubclass: JavaClass() {
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
var v = "FAIL"
|
||||
KotlinSubclass().run { v = "OK" }
|
||||
return v
|
||||
}
|
||||
Reference in New Issue
Block a user