[commonizer] Don't commonize "tailrec" and "external" modifiers

expect external and tailrec were prohibited
in previous commit.

^KT-58536
This commit is contained in:
Roman Efremov
2023-05-22 15:21:24 +02:00
committed by Space Team
parent 439cc88525
commit c8023eac13
23 changed files with 20 additions and 108 deletions
@@ -94,3 +94,5 @@ expect class LL1(value: String) {
expect class LL2(value: String) {
val value: String
}
expect class ExternalClass()
@@ -145,3 +145,5 @@ class KK2(private val wrapped: JJ) : JJ by wrapped
data class LL1(val value: String)
data class LL2(val value: String)
external class ExternalClass
@@ -145,3 +145,5 @@ class KK2(wrapped: JJ) : JJ by wrapped
data class LL1(val value: String)
class LL2(val value: String)
external class ExternalClass
@@ -8,10 +8,10 @@ expect fun Qux.set(index: Int, value: String)
expect infix fun Qux.infixFunction1(another: Qux)
expect fun Qux.infixFunction2(another: Qux)
expect tailrec fun tailrecFunction1()
expect fun tailrecFunction1()
expect fun tailrecFunction2()
expect external fun externalFunction1()
expect fun externalFunction1()
expect fun externalFunction2()
expect inline fun inlineFunction1() {}
@@ -13,5 +13,7 @@ expect var inlineProperty6: Int
expect var inlineProperty7: Int
expect var inlineProperty8: Int
expect external val externalProperty1: Int
expect val externalProperty1: Int
expect val externalProperty2: Int
expect var externalSetGet: Int
@@ -28,3 +28,7 @@ inline var inlineProperty8
external val externalProperty1: Int
external val externalProperty2: Int
var externalSetGet: Int
external get
external set
@@ -28,3 +28,7 @@ var inlineProperty8
external val externalProperty1: Int
val externalProperty2: Int = 1
var externalSetGet: Int
external get
external set