[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:
@@ -27,4 +27,4 @@ fun test() {
|
||||
fooShort(<!TYPE_MISMATCH!>1 - 1.toByte()<!>)
|
||||
fooShort(<!TYPE_MISMATCH!>1 - 1.toLong()<!>)
|
||||
fooShort(<!TYPE_MISMATCH!>1 - 1.toShort()<!>)
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -1,5 +1,5 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// JAVAC_SKIP
|
||||
// SKIP_JAVAC
|
||||
|
||||
// FILE: uint.kt
|
||||
|
||||
@@ -41,4 +41,4 @@ const val explicit: <!UNRESOLVED_REFERENCE!>UInt<!> = <!UNRESOLVED_REFERENCE!>UI
|
||||
|
||||
const val nullable: <!UNRESOLVED_REFERENCE!>UInt?<!> = <!UNRESOLVED_REFERENCE!>UInt<!>(3)
|
||||
|
||||
annotation class NullableAnno(val u: <!UNRESOLVED_REFERENCE!>UInt?<!>)
|
||||
annotation class NullableAnno(val u: <!UNRESOLVED_REFERENCE!>UInt?<!>)
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// JAVAC_SKIP
|
||||
// SKIP_JAVAC
|
||||
|
||||
// FILE: uint.kt
|
||||
|
||||
@@ -41,4 +41,4 @@ const val explicit: UInt = UInt(2)
|
||||
|
||||
<!TYPE_CANT_BE_USED_FOR_CONST_VAL!>const<!> val nullable: UInt? = UInt(3)
|
||||
|
||||
annotation class NullableAnno(val u: <!NULLABLE_TYPE_OF_ANNOTATION_MEMBER!>UInt?<!>)
|
||||
annotation class NullableAnno(val u: <!NULLABLE_TYPE_OF_ANNOTATION_MEMBER!>UInt?<!>)
|
||||
|
||||
@@ -5,4 +5,4 @@ fun bar() {
|
||||
// See exception in KT-13421
|
||||
fun foo() {
|
||||
42 and <!CONSTANT_EXPECTED_TYPE_MISMATCH!>false<!>
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -23,4 +23,4 @@ fun test() {
|
||||
fooByte(1 <!INFIX_MODIFIER_REQUIRED!>rem<!> 1)
|
||||
fooLong(1 <!INFIX_MODIFIER_REQUIRED!>rem<!> 1)
|
||||
fooShort(1 <!INFIX_MODIFIER_REQUIRED!>rem<!> 1)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,4 +38,4 @@ fun test() {
|
||||
fooByte(<!TYPE_MISMATCH!>p4<!>)
|
||||
fooByte(<!TYPE_MISMATCH!>p5<!>)
|
||||
fooByte(<!TYPE_MISMATCH!>p6<!>)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user