[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
@@ -44,4 +44,4 @@ fun innerTryCatchInitializes() {
}
// Here x=I because outer try-catch either exited normally (x=I) or catched exception (x=I, with reassingment, though)
x.inc()
}
}
@@ -45,4 +45,4 @@ fun catchThrowIfNotCalled() {
// x *isn't* initialized here!
println(<!UNINITIALIZED_VARIABLE!>x<!>)
}
}
@@ -35,4 +35,4 @@ fun mixedReceiver(s: String?) {
<!UNSAFE_CALL!>length<!>
}
}
}
}
@@ -35,4 +35,4 @@ fun mixedReceiver(s: String?) {
<!UNSAFE_CALL!>length<!>
}
}
}
}
@@ -6,7 +6,7 @@ import kotlin.reflect.KProperty
fun testLambdaArgumentSmartCast(foo: Int?) {
val v = run {
if (foo != null)
return@run <!NI;DEBUG_INFO_SMARTCAST!>foo<!>
return@run <!DEBUG_INFO_SMARTCAST{NI}!>foo<!>
15
}
}
@@ -42,4 +42,4 @@ fun testDeMorgan2(x: Any?) {
<!DEBUG_INFO_SMARTCAST!>x<!>.length
<!DEBUG_INFO_SMARTCAST!>x<!>.inc()
}
}
}
@@ -54,4 +54,4 @@ fun testNotNullWhenNotNull (x: Int?) {
}
x<!UNSAFE_CALL!>.<!>dec()
}
}
@@ -78,4 +78,4 @@ fun falsefalse(x: Any?) {
x.<!UNRESOLVED_REFERENCE!>length<!>
x.<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>inc<!>()
}
}
}
@@ -75,4 +75,4 @@ fun falsefalse(x: Any?) {
<!DEBUG_INFO_SMARTCAST!>x<!>.length
<!DEBUG_INFO_SMARTCAST!>x<!>.inc()
}
}
}