J2K: do not produce redundant "internal" words for members in an internal class

This commit is contained in:
Valentin Kipyatkov
2015-09-16 21:50:01 +03:00
parent 367b32c309
commit 0cc2158ec1
260 changed files with 459 additions and 448 deletions
@@ -1,5 +1,5 @@
internal class A// this is a primary constructor
@JvmOverloads internal constructor(p: Int = 1) {
@JvmOverloads constructor(p: Int = 1) {
private val v: Int
init {
@@ -7,7 +7,7 @@ internal class A// this is a primary constructor
} // end of primary constructor body
// this is a secondary constructor 2
internal constructor(s: String) : this(s.length()) {
constructor(s: String) : this(s.length()) {
} // end of secondary constructor 2 body
}// this is a secondary constructor 1
// end of secondary constructor 1 body
@@ -16,6 +16,6 @@ internal class B// this constructor will disappear
(private val x: Int) // end of constructor body
{
internal fun foo() {
fun foo() {
}
}