backend: add tests:

* test for uninitialized vals
* test initializers3: global `var` of reference type
* expression_as_statement (disabled): using type operator as statement

Also enable test break1.
This commit is contained in:
Svyatoslav Scherbina
2016-12-23 10:48:39 +07:00
parent 25db86df3e
commit 62737efd54
4 changed files with 54 additions and 1 deletions
@@ -0,0 +1,14 @@
fun foo() {
Any() as String
}
fun main(args: Array<String>) {
try {
foo()
} catch (e: Throwable) {
println("Ok")
return
}
println("Fail")
}