[Commonizer] Source-based tests on lifting up identical type aliases
^KMM-55
This commit is contained in:
+11
-3
@@ -53,9 +53,17 @@ fun <@JsAnnotation("type-parameter") @CommonAnnotation("type-parameter") Q : @Js
|
||||
@CommonAnnotation("class")
|
||||
class AnnotatedClass @JsAnnotation("constructor") @CommonAnnotation("constructor") constructor(val value: String)
|
||||
|
||||
@JsAnnotation("type-alias")
|
||||
@CommonAnnotation("type-alias")
|
||||
typealias AnnotatedTypeAlias = AnnotatedClass
|
||||
@JsAnnotation("js-only-class")
|
||||
@CommonAnnotation("js-only-class")
|
||||
class JsOnlyAnnotatedClass @JsAnnotation("js-only-constructor") @CommonAnnotation("js-only-constructor") constructor(val value: String)
|
||||
|
||||
@JsAnnotation("lifted-up-type-alias")
|
||||
@CommonAnnotation("lifted-up-type-alias")
|
||||
typealias AnnotatedLiftedUpTypeAlias = AnnotatedClass
|
||||
|
||||
@JsAnnotation("non-lifted-up-type-alias")
|
||||
@CommonAnnotation("non-lifted-up-type-alias")
|
||||
typealias AnnotatedNonLiftedUpTypeAlias = JsOnlyAnnotatedClass
|
||||
|
||||
//@JsOuterAnnotation(inner = JsInnerAnnotation("nested-annotations"))
|
||||
//@CommonOuterAnnotation(inner = CommonInnerAnnotation("nested-annotations"))
|
||||
|
||||
+11
-3
@@ -53,9 +53,17 @@ fun <@JvmAnnotation("type-parameter") @CommonAnnotation("type-parameter") Q : @J
|
||||
@CommonAnnotation("class")
|
||||
class AnnotatedClass @JvmAnnotation("constructor") @CommonAnnotation("constructor") constructor(val value: String)
|
||||
|
||||
@JvmAnnotation("type-alias")
|
||||
@CommonAnnotation("type-alias")
|
||||
typealias AnnotatedTypeAlias = AnnotatedClass
|
||||
@JvmAnnotation("jvm-only-class")
|
||||
@CommonAnnotation("jvm-only-class")
|
||||
class JvmOnlyAnnotatedClass @JvmAnnotation("jvm-only-constructor") @CommonAnnotation("jvm-only-constructor") constructor(val value: String)
|
||||
|
||||
@JvmAnnotation("lifted-up-type-alias")
|
||||
@CommonAnnotation("lifted-up-type-alias")
|
||||
typealias AnnotatedLiftedUpTypeAlias = AnnotatedClass
|
||||
|
||||
@JvmAnnotation("non-lifted-up-type-alias")
|
||||
@CommonAnnotation("non-lifted-up-type-alias")
|
||||
typealias AnnotatedNonLiftedUpTypeAlias = JvmOnlyAnnotatedClass
|
||||
|
||||
//@JvmOuterAnnotation(inner = JvmInnerAnnotation("nested-annotations"))
|
||||
//@CommonOuterAnnotation(inner = CommonInnerAnnotation("nested-annotations"))
|
||||
|
||||
Reference in New Issue
Block a user