New J2K: consider literal expressions in data class conversion & fix names conflict

#KT-32253 fixed
This commit is contained in:
Ilya Kirillov
2019-08-27 10:31:31 +03:00
parent 405a3beeab
commit 78b0d5750b
14 changed files with 173 additions and 125 deletions
+7 -12
View File
@@ -1,5 +1,6 @@
internal class A @JvmOverloads constructor(p: Int = 1) {
private val v: Int
internal class A // end of primary constructor body
@JvmOverloads constructor(p: Int = 1) {
private val v = 1
// this is a secondary constructor 2
constructor(s: String) : this(s.length) {} // end of secondary constructor 2 body
@@ -8,9 +9,6 @@ internal class A @JvmOverloads constructor(p: Int = 1) {
// this is a primary constructor
init {
v = 1
} // end of primary constructor body
// end of secondary constructor 1 body
@@ -24,18 +22,15 @@ internal class B // end of constructor body
}
internal class CtorComment {
var myA: String
/*
var myA = "a"
/*
* The magic of comments
*/
// single line magic comments
init {
myA = "a"
}
}
internal class CtorComment2 /*
* The magic of comments
*/
// single line magic comments
// single line magic comments