Add accessor symbols & test for property overriding in Java
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
public open class Inheritor : R|java/lang/Object|, R|Base| {
|
||||
public open operator fun getX(): R|kotlin/Int|
|
||||
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
interface Base {
|
||||
val x: Int
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
FILE: Base.kt
|
||||
public abstract interface Base : R|kotlin/Any| {
|
||||
public abstract val x: R|kotlin/Int|
|
||||
public get(): R|kotlin/Int|
|
||||
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
public class Inheritor implements Base {
|
||||
public int getX() {
|
||||
return 42;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
class Tester : Inheritor() {
|
||||
fun test(): Int {
|
||||
return x
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
FILE: Test.kt
|
||||
public final class Tester : R|Inheritor| {
|
||||
public constructor(): R|Tester| {
|
||||
super<R|Inheritor|>()
|
||||
}
|
||||
|
||||
public final fun test(): R|kotlin/Int| {
|
||||
^test R|/Inheritor.x|
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user