[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:
+6
-6
@@ -11,19 +11,19 @@
|
||||
*/
|
||||
|
||||
fun test1(): Int {
|
||||
val x: String = if (true) <!NI;TYPE_MISMATCH!>{
|
||||
val x: String = if (true) <!TYPE_MISMATCH{NI}!>{
|
||||
when {
|
||||
true -> <!OI;TYPE_MISMATCH!>Any()<!>
|
||||
else -> <!OI;NULL_FOR_NONNULL_TYPE!>null<!>
|
||||
true -> <!TYPE_MISMATCH{OI}!>Any()<!>
|
||||
else -> <!NULL_FOR_NONNULL_TYPE{OI}!>null<!>
|
||||
}
|
||||
}<!> else ""
|
||||
return x.hashCode()
|
||||
}
|
||||
|
||||
fun test2(): Int {
|
||||
val x: String = <!NI;TYPE_MISMATCH, NI;TYPE_MISMATCH!>when {
|
||||
true -> <!OI;TYPE_MISMATCH!>Any()<!>
|
||||
val x: String = <!TYPE_MISMATCH{NI}, TYPE_MISMATCH{NI}!>when {
|
||||
true -> <!TYPE_MISMATCH{OI}!>Any()<!>
|
||||
else -> null
|
||||
} ?: return 0<!>
|
||||
return x.hashCode()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user