J2K: no explicit type required for public declarations

This commit is contained in:
Valentin Kipyatkov
2015-09-15 12:00:31 +03:00
parent c3ddd5d32b
commit 6f12db9cde
41 changed files with 52 additions and 55 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
package test
internal open class JavaClass {
var field: Int = 0
var field = 0
var property: Int = 0
var property = 0
protected set
}
+1 -1
View File
@@ -1,5 +1,5 @@
class AAA {
var x: Int = 42
var x = 42
fun foo() {
x = x + 1
+1 -1
View File
@@ -4,6 +4,6 @@ internal class B {
YY += "a"
}
var YY: String = ""
var YY = ""
private set
}
@@ -9,8 +9,8 @@ internal open class ClassWithStatics {
fun staticMethod(p: Int) {
}
val staticField: Int = 1
val staticField = 1
var value: Int = 0
var value = 0
}
}
+1 -1
View File
@@ -8,5 +8,5 @@ internal object Utils {
return 1
}
val staticField: Int = 1
val staticField = 1
}