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,14 @@
enum class A(val x: Boolean) {
<!ELEMENT(1)!>(false),
<!ELEMENT(2)!>(true);
}
fun box(): String? {
if (A.<!ELEMENT(1)!>.x) return null
if (!A.<!ELEMENT(2)!>.x) return null
if (A.<!ELEMENT(1)!>.name != "<!ELEMENT_VALIDATION(1)!>") return null
if (A.<!ELEMENT(2)!>.name != "<!ELEMENT_VALIDATION(2)!>") return null
return "OK"
}