"Convert to primary constructor": do not move init section down
So #KT-19629 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
9a1253c5c7
commit
a41064295b
@@ -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() {}
|
||||
}
|
||||
Reference in New Issue
Block a user