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