Files
kotlin/compiler/testData/codegen/box/defaultArguments/constructor/annotation.kt
Alexander Udalov 7ce62a5b64 Remove generated codegen tests, move all testData to box/
A single test file will be generated out of box/ directory
2013-01-28 18:20:21 +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"
}