mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Fixed synthetic properties for method inherited from two bases
This commit is contained in:
14
compiler/testData/codegen/boxAgainstJava/syntheticExtensions/fromTwoBases.java
vendored
Normal file
14
compiler/testData/codegen/boxAgainstJava/syntheticExtensions/fromTwoBases.java
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
interface A {
|
||||
String getOk();
|
||||
}
|
||||
|
||||
interface B {
|
||||
String getOk();
|
||||
}
|
||||
|
||||
interface C extends A, B {
|
||||
}
|
||||
|
||||
class JavaClass implements C {
|
||||
public String getOk() { return "OK"; }
|
||||
}
|
||||
5
compiler/testData/codegen/boxAgainstJava/syntheticExtensions/fromTwoBases.kt
vendored
Normal file
5
compiler/testData/codegen/boxAgainstJava/syntheticExtensions/fromTwoBases.kt
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
fun box(): String {
|
||||
return f(JavaClass())
|
||||
}
|
||||
|
||||
fun f(c: C) = c.ok
|
||||
Reference in New Issue
Block a user