[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
This commit is contained in:
Dmitriy Novozhilov
2020-12-07 10:08:56 +03:00
parent 1d04fecd29
commit e6b5cb5216
1823 changed files with 3014 additions and 2662 deletions
@@ -0,0 +1,42 @@
FILE: recursiveCallOnWhenWithSealedClass.kt
public sealed class Maybe<T> : R|kotlin/Any| {
private constructor<T>(): R|Maybe<T>| {
super<R|kotlin/Any|>()
}
public final class Nope<T> : R|Maybe<T>| {
public constructor<T>(reasonForLog: R|kotlin/String|, reasonForUI: R|kotlin/String|): R|Maybe.Nope<T>| {
super<R|Maybe<T>|>()
}
public final val reasonForLog: R|kotlin/String| = R|<local>/reasonForLog|
public get(): R|kotlin/String|
public final val reasonForUI: R|kotlin/String| = R|<local>/reasonForUI|
public get(): R|kotlin/String|
}
public final class Yeah<T> : R|Maybe<T>| {
public constructor<T>(meat: R|T|): R|Maybe.Yeah<T>| {
super<R|Maybe<T>|>()
}
public final val meat: R|T| = R|<local>/meat|
public get(): R|T|
}
public final fun unwrap(): R|T| {
^unwrap when (this@R|/Maybe|) {
($subj$ is R|Maybe.Nope<T>|) -> {
throw R|java/lang/Exception.Exception|(String())
}
($subj$ is R|Maybe.Yeah<T>|) -> {
this@R|/Maybe|.R|SubstitutionOverride</Maybe.Yeah.meat: R|T|>|
}
}
}
}