KT2482 fix - empty if codegen

This commit is contained in:
Alex Tkachman
2012-08-03 07:53:12 +03:00
parent 40d98dc7ef
commit abee22ccca
3 changed files with 17 additions and 1 deletions
@@ -0,0 +1,9 @@
public fun box() : String {
if ( 0 == 0 ) { // Does not crash if either this...
if ( 0 == 0 ) { // ...or this is changed to if ( true )
// Does not crash if the following is uncommented.
//println("foo")
}
}
return "OK"
}