[FIR] Fix access to fields from super class
^KT-49654 Fixed
This commit is contained in:
committed by
TeamCityServer
parent
e7c9d76163
commit
2aa027639c
+24
@@ -0,0 +1,24 @@
|
||||
// ISSUE: KT-49654
|
||||
// FULL_JDK
|
||||
|
||||
// FILE: Base.java
|
||||
public interface Base {
|
||||
String getParent();
|
||||
}
|
||||
|
||||
// FILE: Derived.java
|
||||
public class Derived implements Base {
|
||||
protected String parent = "";
|
||||
|
||||
public String getParent() {
|
||||
return parent;
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
|
||||
interface MyBase : Base
|
||||
|
||||
abstract class Implementation : Derived(), MyBase {
|
||||
val parentNode: String? get() = super.parent
|
||||
}
|
||||
Reference in New Issue
Block a user