Merge branch 'master' of ssh://git.labs.intellij.net/jet

This commit is contained in:
svtk
2011-08-05 17:51:24 +04:00
92 changed files with 1272 additions and 332 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)
}
}
@@ -1,5 +1,5 @@
fun StringBuilder.takeFirst(): Char {
if (this.length() == 0) return '\0'
if (this.length() == 0) return 0.chr
val c = this.charAt(0)
this.deleteCharAt(0)
return c
@@ -8,7 +8,7 @@ fun StringBuilder.takeFirst(): Char {
fun foo(expr: StringBuilder): Int {
val c = expr.takeFirst()
when(c) {
'\0' => throw Exception("zero")
0.chr => throw Exception("zero")
else => throw Exception("nonzero" + c)
}
}