Fix for KT-12892 J2K: Wrong placing of comments when constructor converted to primary constructor & init

This commit is contained in:
Simon Ogorodnik
2016-10-18 12:17:11 +03:00
parent b51f5c5bd9
commit 7c8fdc42b4
10 changed files with 112 additions and 11 deletions
@@ -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