Files
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

34 lines
837 B
Plaintext
Vendored

FILE: checkArguments.kt
public final class A : R|kotlin/Any| {
public constructor(): R|A| {
super<R|kotlin/Any|>()
}
}
public open class B : R|kotlin/Any| {
public constructor(): R|B| {
super<R|kotlin/Any|>()
}
}
public final class C : R|B| {
public constructor(): R|C| {
super<R|B|>()
}
}
public final fun bar(a: R|A|): R|A| {
^bar R|<local>/a|
}
public final fun bar(b: R|B|): R|B| {
^bar R|<local>/b|
}
public final fun foo(): R|kotlin/Unit| {
lval a: R|A| = R|/A.A|()
lval b: R|B| = R|/B.B|()
lval c: R|C| = R|/C.C|()
lval ra: R|A| = R|/bar|(R|<local>/a|)
lval rb: R|B| = R|/bar|(R|<local>/b|)
lval rc: R|B| = R|/bar|(R|<local>/c|)
}