Introduce binary representation for annotations
Will be used where annotations can't be stored elsewhere: for example, built-ins, JS, type annotations on JDK<8
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package test
|
||||
|
||||
annotation class JustString(val string: String)
|
||||
|
||||
annotation class StringArray(val stringArray: Array<String>)
|
||||
|
||||
JustString("kotlin")
|
||||
StringArray(array())
|
||||
class C1
|
||||
|
||||
StringArray(array("java", ""))
|
||||
class C2
|
||||
Reference in New Issue
Block a user