Files
kotlin-fork/compiler/testData/codegen/box/defaultArguments/constructor/annotation.kt
T
2018-06-09 19:15:38 +03:00

13 lines
200 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
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"
}