Files
kotlin/compiler/testData/codegen/box/defaultArguments/constructor/annotation.kt
2015-09-18 10:14:32 +03:00

12 lines
175 B
Kotlin
Vendored

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"
}