Fix for KT-12892 J2K: Wrong placing of comments when constructor converted to primary constructor & init
This commit is contained in:
@@ -18,4 +18,22 @@ internal class B// this constructor will disappear
|
||||
|
||||
fun foo() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal class CtorComment {
|
||||
var myA: String
|
||||
|
||||
/*
|
||||
* The magic of comments
|
||||
*/
|
||||
// single line magic comments
|
||||
init {
|
||||
myA = "a"
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* The magic of comments
|
||||
*/
|
||||
// single line magic comments
|
||||
internal class CtorComment2
|
||||
Reference in New Issue
Block a user