Fixed synthetic properties for method inherited from two bases

This commit is contained in:
Valentin Kipyatkov
2015-07-18 11:30:07 +03:00
parent 612c009f6b
commit 1c52f8a524
8 changed files with 79 additions and 3 deletions

View 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"; }
}

View File

@@ -0,0 +1,5 @@
fun box(): String {
return f(JavaClass())
}
fun f(c: C) = c.ok