[K2/N] KT-55828 Enable already fixed and accidentally disabled tests

Merge-request: KT-MR-8605
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
Vladimir Sukharev
2023-02-01 10:44:26 +00:00
committed by Space Team
parent 1d309cbbb2
commit fbcb07d375
65 changed files with 2 additions and 128 deletions
@@ -2,8 +2,6 @@
// IGNORE_BACKEND: JS_IR_ES6 // IGNORE_BACKEND: JS_IR_ES6
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
// WITH_STDLIB // WITH_STDLIB
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class A() { enum class A() {
ENTRY(){ override fun t() = "OK"}; ENTRY(){ override fun t() = "OK"};
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class E { enum class E {
ENTRY; ENTRY;
@@ -1,6 +1,4 @@
// http://youtrack.jetbrains.com/issue/KT-2167 // http://youtrack.jetbrains.com/issue/KT-2167
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class Season { enum class Season {
WINTER, WINTER,
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
private var logs = "" private var logs = ""
enum class Foo(val text: String) { enum class Foo(val text: String) {
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class Game { enum class Game {
ROCK, ROCK,
PAPER, PAPER,
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
fun f(): String = "O" fun f(): String = "O"
fun g(): String = "K" fun g(): String = "K"
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class A { enum class A {
X { X {
val x = "OK" val x = "OK"
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class A { enum class A {
X { X {
val k = "K" val k = "K"
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class Empty enum class Empty
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class A( enum class A(
name: String, name: String,
ordinal: Int ordinal: Int
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
// WITH_STDLIB // WITH_STDLIB
// MODULE: lib // MODULE: lib
// FILE: lib.kt // FILE: lib.kt
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
// WITH_STDLIB // WITH_STDLIB
// MODULE: lib // MODULE: lib
// FILE: common.kt // FILE: common.kt
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class Color(val rgb: Int) { enum class Color(val rgb: Int) {
RED(0xff0000), RED(0xff0000),
GREEN(0x00ff00), GREEN(0x00ff00),
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
// IGNORE_BACKEND: WASM // IGNORE_BACKEND: WASM
enum class E { OK } enum class E { OK }
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
// KT-4423 Enum with function not compiled // KT-4423 Enum with function not compiled
// SKIP_MANGLE_VERIFICATION // SKIP_MANGLE_VERIFICATION
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
package foo package foo
enum class X { enum class X {
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
package test package test
enum class Season { enum class Season {
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
fun box() = if(Context.operatingSystemType == Context.Companion.OsType.OTHER) "OK" else "fail" fun box() = if(Context.operatingSystemType == Context.Companion.OsType.OTHER) "OK" else "fail"
public class Context public class Context
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
var l = "" var l = ""
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS
// IGNORE_BACKEND: WASM // IGNORE_BACKEND: WASM
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
var l = "" var l = ""
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS
var l = "" var l = ""
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
// DONT_TARGET_EXACT_BACKEND: JS // DONT_TARGET_EXACT_BACKEND: JS
// DONT_TARGET_EXACT_BACKEND: JS_IR // DONT_TARGET_EXACT_BACKEND: JS_IR
// DONT_TARGET_EXACT_BACKEND: JS_IR_ES6 // DONT_TARGET_EXACT_BACKEND: JS_IR_ES6
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
class A { class A {
enum class E { enum class E {
OK OK
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class A { enum class A {
X { X {
val x = "OK" val x = "OK"
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class A { enum class A {
X { X {
val x = "OK" val x = "OK"
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class A { enum class A {
X { X {
val x = "OK" val x = "OK"
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
class A { class A {
companion object {} companion object {}
enum class E { enum class E {
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class Direction() { enum class Direction() {
NORTH { NORTH {
val someSpecialValue = "OK" val someSpecialValue = "OK"
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class Bar { enum class Bar {
ONE, ONE,
TWO TWO
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
// SKIP_DCE_DRIVEN // SKIP_DCE_DRIVEN
enum class Bar { enum class Bar {
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class Test(val x: String, val closure1: () -> String) { enum class Test(val x: String, val closure1: () -> String) {
FOO("O", { FOO.x }) { FOO("O", { FOO.x }) {
override val y: String = "K" override val y: String = "K"
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class Test(val x: String, val closure1: () -> String) { enum class Test(val x: String, val closure1: () -> String) {
FOO("O", run { { FOO.x } }) { FOO("O", run { { FOO.x } }) {
override val y: String = "K" override val y: String = "K"
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
// SKIP_MANGLE_VERIFICATION // SKIP_MANGLE_VERIFICATION
enum class Foo( enum class Foo(
val x: String, val x: String,
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
// SKIP_MANGLE_VERIFICATION // SKIP_MANGLE_VERIFICATION
interface Callback { interface Callback {
fun invoke(): String fun invoke(): String
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class A(val b: String) { enum class A(val b: String) {
E1("OK"){ override fun t() = b }; E1("OK"){ override fun t() = b };
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class E(val b: Boolean) { enum class E(val b: Boolean) {
TRUE(1 == 1) TRUE(1 == 1)
} }
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class ContentType { enum class ContentType {
PLAIN_TEXT { PLAIN_TEXT {
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
interface IFoo { interface IFoo {
fun foo(e: En): String fun foo(e: En): String
} }
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
fun call(f: () -> Unit) { fun call(f: () -> Unit) {
f() f()
} }
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class X { enum class X {
B { B {
val value2 = "K" val value2 = "K"
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class X { enum class X {
B { B {
val value2 = "K" val value2 = "K"
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class X { enum class X {
B { B {
val value2 = "K" val value2 = "K"
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class X { enum class X {
B { B {
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class X { enum class X {
B { B {
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class X { enum class X {
B { B {
override val value = "OK" override val value = "OK"
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class X { enum class X {
B { B {
override val value2 = "K" override val value2 = "K"
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class X { enum class X {
B { B {
override val value2 = "K" override val value2 = "K"
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class X { enum class X {
B { B {
val value2 = "K" val value2 = "K"
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
fun <T, R> T.letNoInline(fn: (T) -> R) = fun <T, R> T.letNoInline(fn: (T) -> R) =
fn(this) fn(this)
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class X { enum class X {
B { B {
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class IssueState { enum class IssueState {
FIXED { FIXED {
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class ClassTemplate( enum class ClassTemplate(
// var bug: Int = 1, // var bug: Int = 1,
var code: Int, var code: Int,
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class State { enum class State {
_0, _0,
_1, _1,
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
// WITH_STDLIB // WITH_STDLIB
package foo package foo
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class E { enum class E {
A; A;
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class Enum { enum class Enum {
ENUM_VALUE { ENUM_VALUE {
override fun test() = ENUM_VALUE override fun test() = ENUM_VALUE
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class Season { enum class Season {
WINTER, WINTER,
SPRING, SPRING,
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
// WITH_STDLIB // WITH_STDLIB
import Game.* import Game.*
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
package test package test
fun box() = E.E1.f() + E.E2.f() fun box() = E.E1.f() + E.E2.f()
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class State { enum class State {
O, O,
K K
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class Color { enum class Color {
RED, RED,
-2
View File
@@ -1,5 +1,3 @@
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class E { enum class E {
OK, NOT_OK OK, NOT_OK
} }
@@ -1,4 +1,4 @@
// KT-55828 // KT-56326
// IGNORE_BACKEND_K2: NATIVE // IGNORE_BACKEND_K2: NATIVE
import Host.x import Host.x
+1 -1
View File
@@ -1,4 +1,4 @@
// KT-55828 // KT-56326
// IGNORE_BACKEND_K2: NATIVE // IGNORE_BACKEND_K2: NATIVE
class CallbackBlock {} class CallbackBlock {}