Add codegen box test templates for identifiers

This commit is contained in:
victor.petukhov
2018-09-25 13:06:55 +03:00
parent dd91727a78
commit 1bc0c4092c
28 changed files with 800 additions and 0 deletions
@@ -0,0 +1,22 @@
annotation class A
fun box(): String? {
var value_1 = false
var value_2 = true
try {
throw Exception()
} catch (<!ELEMENT!>: Throwable) {
value_1 = true
}
try {
throw Exception()
} catch (@A <!ELEMENT!>: Throwable) {
value_2 = false
}
if (!value_1 || value_2) return null
return "OK"
}