Basic support for Java and Kotlin annotations

This commit is contained in:
Andrey Breslav
2012-01-25 19:35:42 +04:00
parent a5bd1c069f
commit f8123e5fb3
4 changed files with 25 additions and 51 deletions
@@ -0,0 +1,10 @@
annotation class my
annotation class my1(i : Int)
annotation class my2(i : Int = 0)
my fun foo() {}
<!NO_VALUE_FOR_PARAMETER!>my1<!> fun foo2() {}
my1(2) fun foo3() {}
my2() fun foo4() {}
my2 fun foo41() {}
my2(2) fun foo42() {}
@@ -0,0 +1,7 @@
// +JDK
import java.lang.Deprecated as deprecated
Deprecated fun foo() {}
deprecated fun foo1() {}