Primary constructor generation.
This commit is contained in:
committed by
Dmitry Petrov
parent
225d792939
commit
e459105128
@@ -0,0 +1,13 @@
|
||||
class Test1(val x: Int, val y: Int)
|
||||
|
||||
class Test2(x: Int, val y: Int) {
|
||||
val x = x
|
||||
}
|
||||
|
||||
class Test3(x: Int, val y: Int) {
|
||||
val x: Int
|
||||
|
||||
init {
|
||||
this.x = x
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user