Constructors represented "as in Java".
TODO: extract nested initializers somehow.
This commit is contained in:
committed by
Dmitry Petrov
parent
57c1b3e0e2
commit
8528c23194
+10
@@ -0,0 +1,10 @@
|
||||
open class Base
|
||||
|
||||
class TestImplicitPrimaryConstructor : Base()
|
||||
|
||||
class TestExplicitPrimaryConstructor() : Base()
|
||||
|
||||
class TestWithDelegatingConstructor(val x: Int, val y: Int) : Base() {
|
||||
constructor(x: Int) : this(x, 0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user