Update tests after switching to LV 1.9

This commit is contained in:
Dmitriy Novozhilov
2023-01-23 11:34:48 +02:00
committed by Space Team
parent 66544a4e00
commit 88efa6bfb6
279 changed files with 1520 additions and 1239 deletions
@@ -1,6 +1,7 @@
// TARGET_BACKEND: JVM
// IGNORE_BACKEND_K2: JVM_IR
// K2 status: declaringClass is error for enums since Kotlin 1.9
// LANGUAGE: -ProhibitEnumDeclaringClass
package test
-24
View File
@@ -1,24 +0,0 @@
// !LANGUAGE: -NestedClassesInEnumEntryShouldBeInner
enum class E {
ENTRY,
SUBCLASS {
// Because of KT-45115 classes/objects inside enum entries are local in FIR
@Suppress("LOCAL_OBJECT_NOT_ALLOWED")
object O {
fun foo() = 2
}
override fun bar() = O.foo()
};
object O {
fun foo() = 1
}
open fun bar() = O.foo()
}
fun box(): String {
if (E.ENTRY.bar() != 1) return "Fail 1"
if (E.SUBCLASS.bar() != 2) return "Fail 2"
return "OK"
}