Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/companionUsesNested.fir.txt
T
Dmitriy Novozhilov e6b5cb5216 [TD] Update diagnostics test data due to new test runners
Update includes:
- Changing syntax of `OI/`NI` tags from `<!NI;TAG!>` to `<!TAG{NI}!>`
- Fix some incorrect directives
- Change order of diagnostics in some places
- Remove ignored diagnostics from FIR test data (previously `DIAGNOSTICS` didn't work)
- Update FIR dumps in some places and add `FIR_IDENTICAL` if needed
- Replace all JAVAC_SKIP with SKIP_JAVAC directive
2020-12-16 19:52:25 +03:00

46 lines
1.4 KiB
Plaintext
Vendored

FILE: companionUsesNested.kt
public abstract class Base : R|kotlin/Any| {
public constructor(): R|Base| {
super<R|kotlin/Any|>()
}
public final class BaseNested : R|kotlin/Any| {
public constructor(): R|Base.BaseNested| {
super<R|kotlin/Any|>()
}
}
}
public final class Derived : R|Base| {
public constructor(): R|Derived| {
super<R|Base|>()
}
public final class DerivedNested : R|kotlin/Any| {
public constructor(): R|Derived.DerivedNested| {
super<R|kotlin/Any|>()
}
}
public final companion object Companion : R|kotlin/Any| {
private constructor(): R|Derived.Companion| {
super<R|kotlin/Any|>()
}
public final val b: R|Base.BaseNested| = R|/Base.BaseNested.BaseNested|()
public get(): R|Base.BaseNested|
public final val d: R|Derived.DerivedNested| = R|/Derived.DerivedNested.DerivedNested|()
public get(): R|Derived.DerivedNested|
public final fun foo(): R|kotlin/Unit| {
lval bb: R|Base.BaseNested| = R|/Base.BaseNested.BaseNested|()
lval dd: R|Derived.DerivedNested| = R|/Derived.DerivedNested.DerivedNested|()
}
}
}