54285d328f
In case of result difference the `-ide`-suffixed testdata is used. Actually the difference in results is more likely to be a bug but currently we are fixating at least some behaviour to protect from unexpected regressions in Ultra Light Classes. `object Local` were removed because there is no local objects in actual Kotlin syntax
50 lines
1.4 KiB
Plaintext
Vendored
50 lines
1.4 KiB
Plaintext
Vendored
public final class SuperCallsKt {
|
|
@org.jetbrains.annotations.NotNull private static final var anon: A = anonymous object : A("textForAnon") {
|
|
fun bar() {
|
|
cons(object : A("inner literal") { })
|
|
}
|
|
|
|
inner class InnerClass : A("inner class")
|
|
}
|
|
public static final fun getAnon() : A = UastEmptyExpression
|
|
public static final fun cons(@org.jetbrains.annotations.NotNull a: A) : void {
|
|
}
|
|
}
|
|
|
|
public class A {
|
|
@org.jetbrains.annotations.NotNull private final var str: java.lang.String
|
|
public fun foo(@org.jetbrains.annotations.NotNull a: long) : void {
|
|
}
|
|
public final fun getStr() : java.lang.String = UastEmptyExpression
|
|
public fun A(@org.jetbrains.annotations.NotNull str: java.lang.String) = UastEmptyExpression
|
|
public fun A(@org.jetbrains.annotations.NotNull i: int) {
|
|
<init>(i.toString())
|
|
}
|
|
}
|
|
|
|
public final class B : A {
|
|
public fun B(@org.jetbrains.annotations.NotNull param: java.lang.String) {
|
|
<init>(param)
|
|
}
|
|
}
|
|
|
|
public final class C : A {
|
|
public fun foo(@org.jetbrains.annotations.NotNull a: long) : void {
|
|
super.foo(a)
|
|
}
|
|
public fun C(@org.jetbrains.annotations.NotNull p: java.lang.String) {
|
|
<init>(p)
|
|
}
|
|
public fun C(@org.jetbrains.annotations.NotNull i: int) {
|
|
<init>(i)
|
|
println()
|
|
}
|
|
}
|
|
|
|
public final class O : A {
|
|
@null public static final var INSTANCE: O
|
|
private fun O() {
|
|
<init>("text")
|
|
}
|
|
}
|