KT-18786: J2K should move all properties to top of class

#KT-18786 fixed
This commit is contained in:
Dimach
2017-07-14 03:01:39 +03:00
committed by Simon Ogorodnik
parent ccfcfd8721
commit a59021a25e
30 changed files with 117 additions and 103 deletions
@@ -1,11 +1,11 @@
class Test {
fun nullableString(p: Int): String? {
return if (p > 0) "response" else null
}
private var nullableInitializerField = nullableString(3)
private val nullableInitializerFieldFinal = nullableString(3)
var nullableInitializerPublicField = nullableString(3)
fun nullableString(p: Int): String? {
return if (p > 0) "response" else null
}
fun testProperty() {
nullableInitializerField = "aaa"