Java to Kotlin converter: declare private field with no writes as val

This commit is contained in:
Valentin Kipyatkov
2014-06-23 19:28:37 +04:00
parent 07bbab3ea0
commit 5a8ab41948
20 changed files with 59 additions and 41 deletions
@@ -1,5 +1,5 @@
class C() {
private var s: String? = x()
private val s = x()
fun foo() {
if (s == null) {