[FIR] Implement checker for missing dependency supertypes
#KT-60778 Fixed
This commit is contained in:
+1
-3
@@ -1,7 +1,5 @@
|
||||
// IGNORE_BACKEND_K1: ANY
|
||||
// IGNORE_REASON: new rules for supertypes matching are implemented only in K2
|
||||
// IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6
|
||||
// IGNORE_REASON: `JsName` in js.translator/testData/_commonFiles/testUtils.kt is invisible for some reason
|
||||
// LANGUAGE: +MultiPlatformProjects
|
||||
// ISSUE: KT-59356
|
||||
|
||||
@@ -16,7 +14,7 @@ fun commonBox(): String {
|
||||
return C().foo()
|
||||
}
|
||||
|
||||
// MODULE: platform-jvm()()(common)
|
||||
// MODULE: platform()()(common)
|
||||
// FILE: main.kt
|
||||
open class B : A() {
|
||||
override fun foo(): String = "OK"
|
||||
|
||||
+1
-3
@@ -1,7 +1,5 @@
|
||||
// IGNORE_BACKEND_K1: ANY
|
||||
// IGNORE_REASON: KT-59355 is fixed only in K2
|
||||
// IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6
|
||||
// IGNORE_REASON: `JsName` in js.translator/testData/_commonFiles/testUtils.kt is invisible for some reason
|
||||
// LANGUAGE: +MultiPlatformProjects
|
||||
// ISSUE: KT-59355
|
||||
|
||||
@@ -29,7 +27,7 @@ fun commonBox(): String {
|
||||
return x + y
|
||||
}
|
||||
|
||||
// MODULE: platform-jvm()()(common)
|
||||
// MODULE: platform()()(common)
|
||||
// FILE: main.kt
|
||||
public actual open class Some actual constructor() {
|
||||
public actual class ProtectedNested actual constructor() {
|
||||
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_BACKEND: JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// IGNORE_BACKEND_K1: JS_IR
|
||||
// IGNORE_BACKEND_K1: JS_IR_ES6
|
||||
// IGNORE_BACKEND_K1: WASM
|
||||
|
||||
// MODULE: lib-common
|
||||
@@ -11,7 +11,7 @@ package test
|
||||
|
||||
expect enum class E
|
||||
|
||||
// MODULE: lib-jvm()()(lib-common)
|
||||
// MODULE: lib()()(lib-common)
|
||||
// FILE: jvm.kt
|
||||
|
||||
package test
|
||||
@@ -22,7 +22,7 @@ enum class F {
|
||||
OK;
|
||||
}
|
||||
|
||||
// MODULE: main(lib-jvm)
|
||||
// MODULE: main(lib)
|
||||
// FILE: jvm2.kt
|
||||
|
||||
import test.E.*
|
||||
|
||||
Reference in New Issue
Block a user