Split K2 and K1 test data for multiplatform feature diagnostic
and add an explicit expect to the test data ^KT-31281
This commit is contained in:
committed by
Space Team
parent
0880b4cb34
commit
c245fa45e3
+24
@@ -0,0 +1,24 @@
|
|||||||
|
<!NOT_A_MULTIPLATFORM_COMPILATION!>expect<!> fun foo1()
|
||||||
|
<!NOT_A_MULTIPLATFORM_COMPILATION!>expect<!> val bar1 = <!EXPECTED_PROPERTY_INITIALIZER!>42<!>
|
||||||
|
<!NOT_A_MULTIPLATFORM_COMPILATION!>expect<!> class ImplicitExpect {
|
||||||
|
fun foo()
|
||||||
|
val x: Int
|
||||||
|
class Inner
|
||||||
|
}
|
||||||
|
|
||||||
|
<!NOT_A_MULTIPLATFORM_COMPILATION!>expect<!> class ExplicitExpect {
|
||||||
|
<!NOT_A_MULTIPLATFORM_COMPILATION, WRONG_MODIFIER_TARGET!>expect<!> fun explicitFoo()
|
||||||
|
<!NOT_A_MULTIPLATFORM_COMPILATION, NOT_A_MULTIPLATFORM_COMPILATION, NOT_A_MULTIPLATFORM_COMPILATION, WRONG_MODIFIER_TARGET!>expect<!> val explicitX: Int
|
||||||
|
<!NOT_A_MULTIPLATFORM_COMPILATION, WRONG_MODIFIER_TARGET!>expect<!> class ExplicitInner
|
||||||
|
}
|
||||||
|
|
||||||
|
<!NOT_A_MULTIPLATFORM_COMPILATION!>actual<!> fun foo2() = 42
|
||||||
|
<!MUST_BE_INITIALIZED!><!NOT_A_MULTIPLATFORM_COMPILATION!>actual<!> val bar2: Int<!>
|
||||||
|
<!NOT_A_MULTIPLATFORM_COMPILATION!>actual<!> interface Baz2
|
||||||
|
|
||||||
|
<!NOT_A_MULTIPLATFORM_COMPILATION!>actual<!> class ImplicitExpect {
|
||||||
|
<!NOT_A_MULTIPLATFORM_COMPILATION!>actual<!> fun foo() {
|
||||||
|
}
|
||||||
|
<!NOT_A_MULTIPLATFORM_COMPILATION!>actual<!> val x: Int = 0
|
||||||
|
<!NOT_A_MULTIPLATFORM_COMPILATION!>actual<!> class Inner
|
||||||
|
}
|
||||||
+11
-4
@@ -1,17 +1,24 @@
|
|||||||
// FIR_IDENTICAL
|
|
||||||
<!NOT_A_MULTIPLATFORM_COMPILATION!>expect<!> fun foo1()
|
<!NOT_A_MULTIPLATFORM_COMPILATION!>expect<!> fun foo1()
|
||||||
<!NOT_A_MULTIPLATFORM_COMPILATION!>expect<!> val bar1 = <!EXPECTED_PROPERTY_INITIALIZER!>42<!>
|
<!NOT_A_MULTIPLATFORM_COMPILATION!>expect<!> val bar1 = <!EXPECTED_PROPERTY_INITIALIZER!>42<!>
|
||||||
<!NOT_A_MULTIPLATFORM_COMPILATION!>expect<!> class Baz1 {
|
<!NOT_A_MULTIPLATFORM_COMPILATION!>expect<!> class ImplicitExpect {
|
||||||
fun foo()
|
fun foo()
|
||||||
|
val x: Int
|
||||||
|
class Inner
|
||||||
|
}
|
||||||
|
|
||||||
class Baz12
|
<!NOT_A_MULTIPLATFORM_COMPILATION!>expect<!> class ExplicitExpect {
|
||||||
|
<!WRONG_MODIFIER_TARGET!>expect<!> fun explicitFoo()
|
||||||
|
<!WRONG_MODIFIER_TARGET!>expect<!> val explicitX: Int
|
||||||
|
<!NOT_A_MULTIPLATFORM_COMPILATION, WRONG_MODIFIER_TARGET!>expect<!> class ExplicitInner
|
||||||
}
|
}
|
||||||
|
|
||||||
<!NOT_A_MULTIPLATFORM_COMPILATION!>actual<!> fun foo2() = 42
|
<!NOT_A_MULTIPLATFORM_COMPILATION!>actual<!> fun foo2() = 42
|
||||||
<!MUST_BE_INITIALIZED!><!NOT_A_MULTIPLATFORM_COMPILATION!>actual<!> val bar2: Int<!>
|
<!MUST_BE_INITIALIZED!><!NOT_A_MULTIPLATFORM_COMPILATION!>actual<!> val bar2: Int<!>
|
||||||
<!NOT_A_MULTIPLATFORM_COMPILATION!>actual<!> interface Baz2
|
<!NOT_A_MULTIPLATFORM_COMPILATION!>actual<!> interface Baz2
|
||||||
|
|
||||||
<!NOT_A_MULTIPLATFORM_COMPILATION!>actual<!> class Baz1 {
|
<!NOT_A_MULTIPLATFORM_COMPILATION!>actual<!> class ImplicitExpect {
|
||||||
<!NOT_A_MULTIPLATFORM_COMPILATION!>actual<!> fun foo() {
|
<!NOT_A_MULTIPLATFORM_COMPILATION!>actual<!> fun foo() {
|
||||||
}
|
}
|
||||||
|
<!NOT_A_MULTIPLATFORM_COMPILATION!>actual<!> val x: Int = 0
|
||||||
|
<!NOT_A_MULTIPLATFORM_COMPILATION!>actual<!> class Inner
|
||||||
}
|
}
|
||||||
+16
-8
@@ -3,16 +3,24 @@ package
|
|||||||
public actual val bar2: kotlin.Int
|
public actual val bar2: kotlin.Int
|
||||||
public actual fun foo2(): kotlin.Int
|
public actual fun foo2(): kotlin.Int
|
||||||
|
|
||||||
public final actual class Baz1 {
|
|
||||||
public constructor Baz1()
|
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
|
||||||
public final actual fun foo(): kotlin.Unit
|
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
|
||||||
}
|
|
||||||
|
|
||||||
public actual interface Baz2 {
|
public actual interface Baz2 {
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final actual class ImplicitExpect {
|
||||||
|
public constructor ImplicitExpect()
|
||||||
|
public actual final val x: kotlin.Int = 0
|
||||||
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
|
public final actual fun foo(): kotlin.Unit
|
||||||
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
|
|
||||||
|
public final actual class Inner {
|
||||||
|
public constructor Inner()
|
||||||
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user