KT-2310: js: !! translated incorrectly (syntax ok, but logic not).

#KT-2310 Fixed
This commit is contained in:
Pavel V. Talanov
2012-07-27 17:56:28 +04:00
parent 42e00102f8
commit f37fae6e29
3 changed files with 22 additions and 4 deletions
@@ -0,0 +1,12 @@
package foo
var c = 0
val a: Int?
get() {
c++
return 2
}
fun box() : Boolean {
return c == 0 && (a!! + 3) == 5 && c == 1
}