[Commonizer] Don't preserve annotations on types

This may lead to leakage of specific annotation classes to common module

^KMM-53
This commit is contained in:
Dmitriy Dolovov
2020-05-08 20:11:37 +07:00
parent 5bb5d7f892
commit e92adf3d4e
4 changed files with 6 additions and 8 deletions
@@ -47,7 +47,7 @@ actual fun function1(@JsAnnotation("parameter") @CommonAnnotation("parameter") t
@JsAnnotation("function")
@CommonAnnotation("function")
actual fun <@JsAnnotation("type-parameter") @CommonAnnotation("type-parameter") Q : @JsAnnotation("type1") @CommonAnnotation("type1") Number> @receiver:JsAnnotation("receiver") @receiver:CommonAnnotation("receiver") Q.function2(): @JsAnnotation("type2") @CommonAnnotation("type2") Q = this
actual fun <@JsAnnotation("type-parameter") @CommonAnnotation("type-parameter") Q : Number> @receiver:JsAnnotation("receiver") @receiver:CommonAnnotation("receiver") Q.function2(): Q = this
@JsAnnotation("class")
@CommonAnnotation("class")
@@ -47,7 +47,7 @@ actual fun function1(@JvmAnnotation("parameter") @CommonAnnotation("parameter")
@JvmAnnotation("function")
@CommonAnnotation("function")
actual fun <@JvmAnnotation("type-parameter") @CommonAnnotation("type-parameter") Q : @JvmAnnotation("type1") @CommonAnnotation("type1") Number> @receiver:JvmAnnotation("receiver") @receiver:CommonAnnotation("receiver") Q.function2(): @JvmAnnotation("type2") @CommonAnnotation("type2") Q = this
actual fun <@JvmAnnotation("type-parameter") @CommonAnnotation("type-parameter") Q : Number> @receiver:JvmAnnotation("receiver") @receiver:CommonAnnotation("receiver") Q.function2(): Q = this
@JvmAnnotation("class")
@CommonAnnotation("class")