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
@@ -1,4 +1,4 @@
annotation class test {}
annotation class test
fun foo(test <!UNUSED_PARAMETER!>f<!> : Int) {}
@@ -8,4 +8,4 @@ var bar : Int = 1
val x : (Int) -> Int = {([test] x : Int) -> x}
class Hello(test args: Any) {
}
}