Remove some legacy codegen tests, move some to generated

This commit is contained in:
Alexander Udalov
2016-03-07 20:57:09 +03:00
committed by Alexander Udalov
parent f8dfaf4599
commit bab127ad33
58 changed files with 326 additions and 930 deletions
@@ -0,0 +1,14 @@
fun isZero(x: Int) = when(x) {
0 -> true
else -> throw Exception()
}
fun box(): String {
try {
isZero(1)
}
catch (e: Exception) {
return "OK"
}
return "Fail"
}