New J2K: preserve declarations order & place init sections to the end

This commit is contained in:
Ilya Kirillov
2019-05-29 15:24:21 +03:00
parent ab26061b5e
commit 95a6f59c62
29 changed files with 124 additions and 163 deletions
+5 -4
View File
@@ -1,5 +1,9 @@
internal class A @JvmOverloads constructor(p: Int = 1) {
private val v: Int
// this is a secondary constructor 2
constructor(s: String) : this(s.length) {} // end of secondary constructor 2 body
// this is a secondary constructor 1
@@ -10,16 +14,13 @@ internal class A @JvmOverloads constructor(p: Int = 1) {
// end of secondary constructor 1 body
// this is a secondary constructor 2
constructor(s: String) : this(s.length) {} // end of secondary constructor 2 body
}
internal class B // this constructor will disappear
// end of constructor body
(private val x: Int) {
fun foo() {}
}
internal class CtorComment {