e6b5cb5216
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
34 lines
882 B
Plaintext
Vendored
34 lines
882 B
Plaintext
Vendored
FILE: overridenOpenVal.kt
|
|
public open class A : R|kotlin/Any| {
|
|
public constructor(x: R|kotlin/Any|): R|A| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
public open val x: R|kotlin/Any| = R|<local>/x|
|
|
public get(): R|kotlin/Any|
|
|
|
|
}
|
|
public final class B : R|A| {
|
|
public constructor(x: R|kotlin/Any|): R|B| {
|
|
super<R|A|>(R|<local>/x|)
|
|
}
|
|
|
|
public final fun test_1(): R|kotlin/Unit| {
|
|
when () {
|
|
(this@R|/B|.R|/A.x| is R|kotlin/String|) -> {
|
|
this@R|/B|.R|/A.x|.R|kotlin/String.length|
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
public final fun test_2(b: R|B|): R|kotlin/Unit| {
|
|
when () {
|
|
(R|<local>/b|.R|/A.x| is R|kotlin/String|) -> {
|
|
R|<local>/b|.R|/A.x|.R|kotlin/String.length|
|
|
}
|
|
}
|
|
|
|
}
|