J2K: adapted for default visibility modifier 'public'
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class A// this is a primary constructor
|
||||
JvmOverloads constructor(p: Int = 1) {
|
||||
internal class A// this is a primary constructor
|
||||
JvmOverloads internal constructor(p: Int = 1) {
|
||||
private val v: Int
|
||||
|
||||
init {
|
||||
@@ -7,15 +7,15 @@ JvmOverloads constructor(p: Int = 1) {
|
||||
} // end of primary constructor body
|
||||
|
||||
// this is a secondary constructor 2
|
||||
constructor(s: String) : this(s.length()) {
|
||||
internal constructor(s: String) : this(s.length()) {
|
||||
} // end of secondary constructor 2 body
|
||||
}// this is a secondary constructor 1
|
||||
// end of secondary constructor 1 body
|
||||
|
||||
class B// this constructor will disappear
|
||||
internal class B// this constructor will disappear
|
||||
(private val x: Int) // end of constructor body
|
||||
{
|
||||
|
||||
fun foo() {
|
||||
internal fun foo() {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user