[Test] Convert IGNORE: NATIVE directives in box tests from D to I
^KT-59057 Merge-request: KT-MR-10748 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
919d6401f7
commit
a036e41809
+4
-5
@@ -1,7 +1,6 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS, JS_IR, NATIVE, JVM
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// JVM backend throws runtime exception: java.lang.ClassCastException: kotlin.Unit cannot be cast to Foo
|
||||
// IGNORE_BACKEND: JVM
|
||||
// IGNORE_LIGHT_ANALYSIS
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +GenericInlineClassParameter, +ValueClassesSecondaryConstructorWithBody
|
||||
@@ -9,7 +8,7 @@
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
value class Foo<T: String>(val x: T) {
|
||||
constructor(y: Int) : this("OK" as T) {
|
||||
if (y == 0) return throw java.lang.IllegalArgumentException()
|
||||
if (y == 0) throw IllegalArgumentException()
|
||||
if (y == 1) return
|
||||
return Unit
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user