J2K: do not produce redundant "internal" words for members in an internal class
This commit is contained in:
@@ -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() {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user