[FIR] Fix access to fields from super class
^KT-49654 Fixed
This commit is contained in:
committed by
TeamCityServer
parent
e7c9d76163
commit
2aa027639c
+14
@@ -0,0 +1,14 @@
|
||||
FILE: main.kt
|
||||
public abstract interface MyBase : R|Base| {
|
||||
}
|
||||
public abstract class Implementation : R|Derived|, R|MyBase| {
|
||||
public constructor(): R|Implementation| {
|
||||
super<R|Derived|>()
|
||||
}
|
||||
|
||||
public final val parentNode: R|kotlin/String?|
|
||||
public get(): R|kotlin/String?| {
|
||||
^ this@R|/Implementation|.super<R|Derived|>.R|/Derived.parent|
|
||||
}
|
||||
|
||||
}
|
||||
+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