Fixed a bug in CF for when() expressions

This commit is contained in:
Andrey Breslav
2011-05-18 14:24:17 +04:00
parent 891aebf3bc
commit cea7f85648
5 changed files with 11 additions and 4 deletions
+3 -1
View File
@@ -15,4 +15,6 @@ fun foo() {
<error>.</error>equals(1) => 1
?.equals(1).equals(2) => 1
}
}
}
val _type_test : Int = foo() // this is needed to ensure the inferred return type of foo()