Java to Kotlin converter: generate nullable type for private non-initialized fields

This commit is contained in:
Valentin Kipyatkov
2014-06-26 14:58:57 +04:00
parent f8e4ecfa94
commit 44c706eb3e
8 changed files with 41 additions and 32 deletions
@@ -1,4 +1,4 @@
enum class E {
I
private val name: String = 0
private val name: String? = null
}
@@ -1,7 +1,7 @@
class Base {
private val myFirst: String = 0
private val myFirst: String? = null
}
class Child : Base() {
private val mySecond: String = 0
private val mySecond: String? = null
}
+2 -2
View File
@@ -1,3 +1,3 @@
class C {
private val f: Foo = 0
}
private val f: Foo? = null
}