Fixed KT-5204 Converter from java could generate var's for locals when needed
#KT-5204 Fixed
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user