Add an explicit diagnostic for when expect/actual modifiers are used in
an unsupported compilation ^KT-31281
This commit is contained in:
committed by
Space Team
parent
cab0487f98
commit
e12e78d96b
+9
-9
@@ -1,17 +1,17 @@
|
||||
// FIR_IDENTICAL
|
||||
<!UNSUPPORTED_FEATURE!>expect<!> fun foo1()
|
||||
<!UNSUPPORTED_FEATURE!>expect<!> val bar1 = <!EXPECTED_PROPERTY_INITIALIZER!>42<!>
|
||||
<!UNSUPPORTED_FEATURE!>expect<!> class Baz1 {
|
||||
<!NOT_A_MULTIPLATFORM_COMPILATION!>expect<!> fun foo1()
|
||||
<!NOT_A_MULTIPLATFORM_COMPILATION!>expect<!> val bar1 = <!EXPECTED_PROPERTY_INITIALIZER!>42<!>
|
||||
<!NOT_A_MULTIPLATFORM_COMPILATION!>expect<!> class Baz1 {
|
||||
fun foo()
|
||||
|
||||
class Baz12
|
||||
}
|
||||
|
||||
<!UNSUPPORTED_FEATURE!>actual<!> fun foo2() = 42
|
||||
<!MUST_BE_INITIALIZED!><!UNSUPPORTED_FEATURE!>actual<!> val bar2: Int<!>
|
||||
<!UNSUPPORTED_FEATURE!>actual<!> interface Baz2
|
||||
<!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
|
||||
|
||||
<!UNSUPPORTED_FEATURE!>actual<!> class Baz1 {
|
||||
<!UNSUPPORTED_FEATURE!>actual<!> fun foo() {
|
||||
<!NOT_A_MULTIPLATFORM_COMPILATION!>actual<!> class Baz1 {
|
||||
<!NOT_A_MULTIPLATFORM_COMPILATION!>actual<!> fun foo() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user