"Convert to primary constructor": do not move init section down

So #KT-19629 Fixed
This commit is contained in:
Toshiaki Kameyama
2017-08-29 04:43:54 +03:00
committed by Mikhail Glukhikh
parent 9a1253c5c7
commit a41064295b
5 changed files with 19 additions and 3 deletions
@@ -7,4 +7,6 @@ class ConvertToInit {
foo()
bar()
}
fun baz() {}
}
@@ -8,4 +8,5 @@ class ConvertToInit() {
bar()
}
fun baz() {}
}
@@ -7,4 +7,6 @@ class WithVarArg {
constructor(<caret>vararg zz: String) {
x = listOf(*zz)
}
fun foo() {}
}
@@ -8,4 +8,5 @@ class WithVarArg(vararg zz: String) {
x = listOf(*zz)
}
fun foo() {}
}