Compile-time constants

This commit is contained in:
Andrey Breslav
2011-08-03 14:05:07 +04:00
parent 7b27ac1766
commit 4c8aec3b1b
91 changed files with 1271 additions and 331 deletions
@@ -16,7 +16,7 @@ fun bbb() {
fun foo(expr: StringBuilder): Int {
val c = 'a'
when(c) {
'\0' => throw Exception("zero")
0.chr => throw Exception("zero")
else => throw Exception("nonzero" + c)
}
}