Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolveWithStdlib/reinitializations/constructorVarWrite.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

33 lines
1.0 KiB
Plaintext
Vendored

FILE: constructorVarWrite.kt
public final class Some : R|kotlin/Any| {
public constructor(foo: R|kotlin/Int|): R|Some| {
super<R|kotlin/Any|>()
}
public final var foo: R|kotlin/Int| = R|<local>/foo|
public get(): R|kotlin/Int|
public set(value: R|kotlin/Int|): R|kotlin/Unit|
init {
when () {
CMP(<, this@R|/Some|.R|/Some.foo|.R|kotlin/Int.compareTo|(Int(0))) -> {
this@R|/Some|.R|/Some.foo| = Int(0)
}
}
}
public final val y: R|kotlin/Int| = this@R|/Some|.R|kotlin/run|<R|Some|, R|kotlin/Int|>(<L> = run@fun R|Some|.<anonymous>(): R|kotlin/Int| <kind=EXACTLY_ONCE> {
this@R|special/anonymous|.R|/Some.foo| = Int(1)
^ this@R|special/anonymous|.R|/Some.foo|
}
)
public get(): R|kotlin/Int|
public constructor(): R|Some| {
this<R|Some|>(Int(-1))
this@R|/Some|.R|/Some.foo| = Int(2)
}
}