1b553ebfaf
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
13 lines
230 B
Kotlin
13 lines
230 B
Kotlin
@Target(AnnotationTarget.EXPRESSION)
|
|
annotation class Annotation
|
|
|
|
fun box(): String {
|
|
var v = 0
|
|
@Annotation v += 1 + 2
|
|
if (v != 3) return "fail1"
|
|
|
|
@Annotation v = 4
|
|
if (v != 4) return "fail2"
|
|
|
|
return "OK"
|
|
} |