Files
kotlin-fork/compiler/testData/codegen/defaultArguments/blackBox/constructor/annotation.kt
T
2012-12-27 12:29:09 +04:00

12 lines
173 B
Kotlin

annotation class A(val a: Int = 0)
A fun test1() = 1
A(2) fun test2() = 1
fun box(): String {
if ((test1() + test2()) == 2) {
return "OK"
}
return "fail"
}