mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Record inner class info for interface and DefaultImpls
This commit is contained in:
5
compiler/testData/codegen/boxWithJava/interfaceDefaultImpls/B.java
vendored
Normal file
5
compiler/testData/codegen/boxWithJava/interfaceDefaultImpls/B.java
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
class B {
|
||||
static String test(A x) {
|
||||
return A.DefaultImpls.foo(x);
|
||||
}
|
||||
}
|
||||
10
compiler/testData/codegen/boxWithJava/interfaceDefaultImpls/main.kt
vendored
Normal file
10
compiler/testData/codegen/boxWithJava/interfaceDefaultImpls/main.kt
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
interface A {
|
||||
fun foo() = "OK"
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val result = B.test(object : A {})
|
||||
if (result != "OK") return "fail: $result"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user