[Test] Update testdata of MPP diagnostic tests after previous changes
Related issues: KT-58845, KT-58881, KT-64187
This commit is contained in:
committed by
Nikolay Lunyak
parent
1de8a1dda6
commit
2982f548d4
Vendored
+5
-2
@@ -1,5 +1,8 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_DIAGNOSTIC_API
|
||||
// IGNORE_REVERSED_RESOLVE
|
||||
// Reason: MPP diagnostics are reported differentely in the compiler and AA
|
||||
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
@@ -7,8 +10,8 @@
|
||||
expect open class C1()
|
||||
expect interface I1
|
||||
|
||||
open class Common1_1 : C1(), I1
|
||||
open class Common1_2 : I1, C1()
|
||||
open <!MANY_IMPL_MEMBER_NOT_IMPLEMENTED!>class Common1_1<!> : C1(), I1
|
||||
open <!MANY_IMPL_MEMBER_NOT_IMPLEMENTED!>class Common1_2<!> : I1, C1()
|
||||
|
||||
expect open class Expect1_1 : C1, I1
|
||||
expect open class Expect1_2 : I1, C1
|
||||
|
||||
+3
@@ -1,5 +1,8 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_DIAGNOSTIC_API
|
||||
// IGNORE_REVERSED_RESOLVE
|
||||
// Reason: MPP diagnostics are reported differentely in the compiler and AA
|
||||
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
|
||||
Vendored
+4
-1
@@ -1,5 +1,8 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_DIAGNOSTIC_API
|
||||
// IGNORE_REVERSED_RESOLVE
|
||||
// Reason: MPP diagnostics are reported differentely in the compiler and AA
|
||||
|
||||
// MODULE: common
|
||||
// TARGET_PLATFORM: Common
|
||||
@@ -8,7 +11,7 @@
|
||||
expect interface S1
|
||||
expect interface S2
|
||||
|
||||
open class A : S1, S2
|
||||
open <!MANY_INTERFACES_MEMBER_NOT_IMPLEMENTED!>class A<!> : S1, S2
|
||||
|
||||
class B : A()
|
||||
|
||||
|
||||
Vendored
+3
@@ -1,5 +1,8 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_DIAGNOSTIC_API
|
||||
// IGNORE_REVERSED_RESOLVE
|
||||
// Reason: MPP diagnostics are reported differentely in the compiler and AA
|
||||
|
||||
// MODULE: common
|
||||
// TARGET_PLATFORM: Common
|
||||
|
||||
Vendored
+5
-2
@@ -1,4 +1,7 @@
|
||||
// LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_DIAGNOSTIC_API
|
||||
// IGNORE_REVERSED_RESOLVE
|
||||
// Reason: MPP diagnostics are reported differentely in the compiler and AA
|
||||
|
||||
// MODULE: common
|
||||
// FILE: common.kt
|
||||
@@ -10,9 +13,9 @@ expect interface I2<out R> {
|
||||
suspend fun invoke(): R
|
||||
}
|
||||
|
||||
<!EXPECT_ACTUAL_INCOMPATIBILITY{JVM}, EXPECT_ACTUAL_INCOMPATIBILITY{JVM}!>expect interface ExpectInterface : I1<Int>, I2<Int><!>
|
||||
<!AMBIGUOUS_ACTUALS{JVM}, AMBIGUOUS_ACTUALS{JVM}, EXPECT_ACTUAL_INCOMPATIBILITY{JVM}, NO_ACTUAL_FOR_EXPECT{JVM}, NO_ACTUAL_FOR_EXPECT{JVM}!>expect interface ExpectInterface : I1<Int>, I2<Int><!>
|
||||
|
||||
interface CommonInterface : I1<Int>, I2<Int>
|
||||
interface CommonInterface : <!MIXING_SUSPEND_AND_NON_SUSPEND_SUPERTYPES!>I1<Int>, I2<Int><!>
|
||||
|
||||
// MODULE: jvm()()(common)
|
||||
// FILE: main.kt
|
||||
|
||||
Vendored
+3
@@ -1,4 +1,7 @@
|
||||
// LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_DIAGNOSTIC_API
|
||||
// IGNORE_REVERSED_RESOLVE
|
||||
// Reason: MPP diagnostics are reported differentely in the compiler and AA
|
||||
|
||||
// MODULE: common
|
||||
// FILE: common.kt
|
||||
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
// LANGUAGE: +MultiPlatformProjects
|
||||
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
expect interface I1 {
|
||||
fun foo(x: Int = 1)
|
||||
fun bar(x: Int = 1)
|
||||
}
|
||||
|
||||
expect interface I2 {
|
||||
fun foo(x: Int = 2)
|
||||
fun bar(x: Int = 2)
|
||||
}
|
||||
|
||||
<!MULTIPLE_DEFAULTS_INHERITED_FROM_SUPERTYPES_WHEN_NO_EXPLICIT_OVERRIDE!>expect interface ExpectInterface<!> : I1, I2 {
|
||||
override fun foo(<!MULTIPLE_DEFAULTS_INHERITED_FROM_SUPERTYPES!>x: Int<!>)
|
||||
}
|
||||
|
||||
interface CommonInterface : I1, I2 {
|
||||
override fun foo(x: Int)
|
||||
}
|
||||
|
||||
// MODULE: m1-jvm()()(m1-common)
|
||||
// FILE: main.kt
|
||||
|
||||
actual interface I1 {
|
||||
actual fun foo(x: Int)
|
||||
actual fun bar(x: Int)
|
||||
}
|
||||
|
||||
actual interface I2 {
|
||||
actual fun foo(x: Int)
|
||||
actual fun bar(x: Int)
|
||||
}
|
||||
|
||||
actual interface ExpectInterface : I1, I2 {
|
||||
actual override fun foo(x: Int)
|
||||
}
|
||||
-1
@@ -1,4 +1,3 @@
|
||||
// FIR_IDENTICAL
|
||||
// LANGUAGE: +MultiPlatformProjects
|
||||
|
||||
// MODULE: m1-common
|
||||
|
||||
+5
-2
@@ -1,11 +1,14 @@
|
||||
// LANGUAGE: +MultiPlatformProjects
|
||||
// ISSUE: KT-58845
|
||||
// IGNORE_DIAGNOSTIC_API
|
||||
// IGNORE_REVERSED_RESOLVE
|
||||
// Reason: MPP diagnostics are reported differentely in the compiler and AA
|
||||
|
||||
// MODULE: common
|
||||
// FILE: common.kt
|
||||
expect interface I
|
||||
|
||||
fun interface F : I {
|
||||
<!FUN_INTERFACE_WRONG_COUNT_OF_ABSTRACT_MEMBERS!>fun<!> interface F : I {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
@@ -14,4 +17,4 @@ fun interface F : I {
|
||||
|
||||
actual interface I {
|
||||
fun bar()
|
||||
}
|
||||
}
|
||||
|
||||
+3
@@ -1,5 +1,8 @@
|
||||
// LANGUAGE: +MultiPlatformProjects
|
||||
// ISSUE: KT-58845
|
||||
// IGNORE_DIAGNOSTIC_API
|
||||
// IGNORE_REVERSED_RESOLVE
|
||||
// Reason: MPP diagnostics are reported differentely in the compiler and AA
|
||||
|
||||
// MODULE: common
|
||||
// FILE: common.kt
|
||||
|
||||
Reference in New Issue
Block a user