Java to Kotlin converter: no explicit type for private and internal fields when possible

This commit is contained in:
Valentin Kipyatkov
2014-06-23 19:03:49 +04:00
parent 9365741918
commit 04e2d3da58
39 changed files with 214 additions and 62 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ class A() {
/* body is empty */
}
private /*it's private*/ var field: Int = 0
private /*it's private*/ var field = 0
public /*it's public*/ fun foo(): Char {
}
@@ -1,3 +1,3 @@
class A() {
private var isOpen: Boolean = true // ideally should be atomic boolean
private var isOpen = true // ideally should be atomic boolean
}