Java to Kotlin converter: declare private field with no writes as val
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class C() {
|
||||
private var s: String? = x()
|
||||
private val s = x()
|
||||
|
||||
fun foo() {
|
||||
if (s == null) {
|
||||
|
||||
Reference in New Issue
Block a user