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:
Alexander Udalov
2014-11-28 23:24:54 +03:00
parent 9a86318908
commit 63bfa004fd
30 changed files with 6958 additions and 164 deletions
@@ -0,0 +1,18 @@
package test
enum class Weapon {
ROCK
PAPER
SCISSORS
}
annotation class JustEnum(val weapon: Weapon)
annotation class EnumArray(val enumArray: Array<Weapon>)
JustEnum(Weapon.SCISSORS)
EnumArray(array())
class C1
EnumArray(array(Weapon.PAPER, Weapon.ROCK))
class C2