Generate constructors with empty bodies for annotation classes

Default parameter values of primary constructor of an annotation class
are required to generate default values of annotation properties.
This commit is contained in:
Dmitry Petrov
2018-04-03 13:01:46 +03:00
parent e74c448c0a
commit 4016254fd4
6 changed files with 143 additions and 10 deletions
@@ -0,0 +1,7 @@
annotation class Test1(val x: Int)
annotation class Test2(val x: Int = 0)
annotation class Test3(val x: Test1)
annotation class Test4(vararg val xs: Int)