Recursive annotations are now possible for properties / functions / classes / primary constructors #EA-66984 Fixed #EA-63992 Fixed #EA-64272 Fixed

A set of tests provided.
This commit is contained in:
Mikhail Glukhikh
2015-06-02 10:38:25 +03:00
parent 0c1a8ab8ff
commit 98407a7c4b
31 changed files with 261 additions and 12 deletions
@@ -0,0 +1,4 @@
// Functions can be recursively annotated
annotation class ann(val x: Int)
ann(<!ANNOTATION_PARAMETER_MUST_BE_CONST!>bar()<!>) fun foo() = 1
ann(<!ANNOTATION_PARAMETER_MUST_BE_CONST!>foo()<!>) fun bar() = 2