7d963e8e07
When deal with constructed object (not this) treat it like it's fully initialized. Otherwise (this or access with no receiver) access instruction should be handled as it was before. #KT-6788 Fixed #KT-4126 Fixed
16 lines
285 B
Kotlin
16 lines
285 B
Kotlin
class A {
|
|
val x: Int
|
|
val y: Int
|
|
constructor(x: Int, y: Int) {
|
|
this.x = x
|
|
this.y = y
|
|
}
|
|
constructor(other: A) {
|
|
x = other.x
|
|
y = other.y
|
|
}
|
|
}
|
|
class A1(val x: Int, val y: Int) {
|
|
constructor(other: A1): this(other.x, other.y) {}
|
|
}
|