New J2K: fix testData

This commit is contained in:
Ilya Kirillov
2019-05-29 14:22:26 +03:00
parent 3a98b49556
commit ab26061b5e
39 changed files with 229 additions and 235 deletions
+13 -10
View File
@@ -1,19 +1,23 @@
internal class A// this is a primary constructor
@JvmOverloads constructor(p: Int = 1) {
internal class A @JvmOverloads constructor(p: Int = 1) {
private val v: Int
// this is a secondary constructor 1
// this is a primary constructor
init {
v = 1
} // end of primary constructor body
// end of secondary constructor 1 body
// this is a secondary constructor 2
constructor(s: String) : this(s.length) {} // end of secondary constructor 2 body
}// this is a secondary constructor 1
// end of secondary constructor 1 body
}
internal class B// this constructor will disappear
(private val x: Int) // end of constructor body
{
internal class B // this constructor will disappear
// end of constructor body
(private val x: Int) {
fun foo() {}
}
@@ -30,8 +34,7 @@ internal class CtorComment {
}
}
/*
internal class CtorComment2 /*
* The magic of comments
*/
// single line magic comments
internal class CtorComment2
// single line magic comments