3c859caf2b
Move j2k/test/tests -> j2k/tests, j2k/test/testData -> j2k/testData
22 lines
460 B
Kotlin
22 lines
460 B
Kotlin
// this is a secondary constructor 2
|
|
fun A(s: String): A {
|
|
return A(s.length())
|
|
} // end of secondary constructor 2 body
|
|
|
|
class A// this is a primary constructor
|
|
(p: Int = 1) {
|
|
private val v: Int
|
|
|
|
{
|
|
v = 1
|
|
} // end of primary constructor body
|
|
}// this is a secondary constructor 1
|
|
// end of secondary constructor 1 body
|
|
|
|
class B// this constructor will disappear
|
|
(private val x: Int) // end of constructor body
|
|
{
|
|
|
|
fun foo() {
|
|
}
|
|
} |