Fixed KT-5204 Converter from java could generate var's for locals when needed

#KT-5204 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-07-10 15:42:24 +04:00
parent acc58173da
commit b983a0eaa0
4 changed files with 36 additions and 1 deletions
@@ -0,0 +1,11 @@
//file
class C {
int foo(boolean p) {
int a;
int b;
a = 10;
b = 5;
if (p) a = 5; else b = 10;
return a + b;
}
}