Extract default language version settings for diagnostics tests
And override it in unsigned types diagnostics tests. Remove InlineClasses feature directive from tests, because it's already enabled in that language version.
This commit is contained in:
-2
@@ -1,5 +1,3 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// !SKIP_METADATA_VERSION_CHECK
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
fun ubyte(vararg a: UByte) {}
|
||||
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// !SKIP_METADATA_VERSION_CHECK
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
val a0: Int = <!CONSTANT_EXPECTED_TYPE_MISMATCH!>1uL<!>
|
||||
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// !SKIP_METADATA_VERSION_CHECK
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
||||
|
||||
fun test(
|
||||
|
||||
Vendored
-2
@@ -1,5 +1,3 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// !SKIP_METADATA_VERSION_CHECK
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
||||
|
||||
fun test() {
|
||||
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// !SKIP_METADATA_VERSION_CHECK
|
||||
|
||||
const val u0 = 1u
|
||||
const val u1: UByte = 2u
|
||||
|
||||
Vendored
-2
@@ -1,5 +1,3 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// !SKIP_METADATA_VERSION_CHECK
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
const val u1: UByte = 0xFFu
|
||||
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// !SKIP_METADATA_VERSION_CHECK
|
||||
|
||||
val a0: Any = 1u
|
||||
|
||||
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// !SKIP_METADATA_VERSION_CHECK
|
||||
|
||||
fun ubyte(vararg a: UByte): UByteArray = a
|
||||
fun ushort(vararg a: UShort): UShortArray = a
|
||||
|
||||
Reference in New Issue
Block a user