Prohibit body for annotation class

#KT-1886 Fixed
This commit is contained in:
Natalia.Ukhorskaya
2012-09-13 16:26:07 +04:00
parent 954003872d
commit 60bdae9d75
15 changed files with 53 additions and 24 deletions
@@ -5,8 +5,7 @@ import jet.runtime.ArrayIterator
/**
* Annotates a class used to implement extension functions
*/
annotation class extension() {
}
annotation class extension()
/**
* Defines the extension functions on a List<T>
+2 -2
View File
@@ -4,10 +4,10 @@ package js
* This annotation marks code as being a native JavaScript expression
*/
native
annotation class native(name : String = "") {}
annotation class native(name : String = "")
/**
* Represents a function in the standard library
*/
native
annotation class library(name : String = "") {}
annotation class library(name : String = "")