[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:
+2
-2
@@ -29,6 +29,6 @@ fun chained2(arg: First) = run {
|
||||
}
|
||||
|
||||
fun test(arg: First) {
|
||||
chained1(arg).<!NI;UNRESOLVED_REFERENCE!>first<!>()
|
||||
chained2(arg).<!NI;UNRESOLVED_REFERENCE!>first<!>()
|
||||
chained1(arg).<!UNRESOLVED_REFERENCE{NI}!>first<!>()
|
||||
chained2(arg).<!UNRESOLVED_REFERENCE{NI}!>first<!>()
|
||||
}
|
||||
|
||||
+4
-4
@@ -17,11 +17,11 @@ fun <S> intersect(vararg elements: S): S = TODO()
|
||||
fun intersectAfterSmartCast(arg: Base, arg2: Base) = intersect(
|
||||
run {
|
||||
if (arg !is One) throw Exception()
|
||||
<!NI;DEBUG_INFO_SMARTCAST!>arg<!>
|
||||
<!DEBUG_INFO_SMARTCAST{NI}!>arg<!>
|
||||
},
|
||||
run {
|
||||
if (arg2 !is Two) throw Exception()
|
||||
<!NI;DEBUG_INFO_SMARTCAST!>arg2<!>
|
||||
<!DEBUG_INFO_SMARTCAST{NI}!>arg2<!>
|
||||
}
|
||||
)
|
||||
|
||||
@@ -33,6 +33,6 @@ fun intersectArgWithSmartCastFromLambda(arg: One, arg2: Base) = argOrFn(arg) {
|
||||
}
|
||||
|
||||
fun test() {
|
||||
intersectAfterSmartCast(O1, O2).<!NI;UNRESOLVED_REFERENCE!>base<!>()
|
||||
intersectArgWithSmartCastFromLambda(O1, O2).<!NI;UNRESOLVED_REFERENCE!>base<!>()
|
||||
intersectAfterSmartCast(O1, O2).<!UNRESOLVED_REFERENCE{NI}!>base<!>()
|
||||
intersectArgWithSmartCastFromLambda(O1, O2).<!UNRESOLVED_REFERENCE{NI}!>base<!>()
|
||||
}
|
||||
|
||||
+1
-1
@@ -18,5 +18,5 @@ fun smartCastAfterIntersection(a: One, b: Two) = run {
|
||||
}
|
||||
|
||||
fun test(one: One, two: Two) {
|
||||
smartCastAfterIntersection(one, two)<!NI;UNNECESSARY_SAFE_CALL!>?.<!><!NI;UNRESOLVED_REFERENCE!>base<!>()
|
||||
smartCastAfterIntersection(one, two)<!UNNECESSARY_SAFE_CALL{NI}!>?.<!><!UNRESOLVED_REFERENCE{NI}!>base<!>()
|
||||
}
|
||||
|
||||
+1
-1
@@ -21,5 +21,5 @@ fun <S> intersectNoBound(vararg elements: S): S = TODO()
|
||||
fun some(a: One, b: Two, c: Three) = intersectNoBound(intersect(a, b), c)
|
||||
|
||||
fun test(arg: Base, arg2: Base) {
|
||||
some(O1, O2, O3).<!NI;UNRESOLVED_REFERENCE!>base<!>()
|
||||
some(O1, O2, O3).<!UNRESOLVED_REFERENCE{NI}!>base<!>()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user