Java to Kotlin converter: specify local variable type when necessary

#KT-5277 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-06-24 19:04:03 +04:00
parent 73ba1af779
commit 6e473506fc
22 changed files with 182 additions and 60 deletions
@@ -4,7 +4,7 @@ trait I {
class C() {
fun foo(i: I, b: Boolean) {
val result = i.getString()
val result: String? = i.getString()
if (b) result = null
if (result != null) {
print(result)