[PSI2IR, K/Wasm] Sync start and end offsets on PSI and FIR for primary constructors
This commit is contained in:
-13
@@ -1,13 +0,0 @@
|
||||
// !LANGUAGE: +ValueClasses
|
||||
// WITH_STDLIB
|
||||
|
||||
@JvmInline
|
||||
value class A(val x: Int, val y: Int) {
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>constructor(other: A): this(other.x, other.y)<!>
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>constructor(x: UInt, y: UInt): this(x.toInt(), y.toInt())<!>
|
||||
}
|
||||
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>data class B<!CONFLICTING_JVM_DECLARATIONS!>(val x: UInt, val y: UInt)<!> {
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>constructor(other: A) : this(other.x, other.y)<!>
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>constructor(x: Int, y: Int) : this(x.toUInt(), y.toUInt())<!>
|
||||
}<!>
|
||||
+3
-2
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !LANGUAGE: +ValueClasses
|
||||
// WITH_STDLIB
|
||||
|
||||
@@ -7,7 +8,7 @@ value class A(val x: Int, val y: Int) {
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>constructor(x: UInt, y: UInt): this(x.toInt(), y.toInt())<!>
|
||||
}
|
||||
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>data <!CONFLICTING_JVM_DECLARATIONS!>class B(val x: UInt, val y: UInt) {
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>data class B<!CONFLICTING_JVM_DECLARATIONS!>(val x: UInt, val y: UInt)<!> {
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>constructor(other: A) : this(other.x, other.y)<!>
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>constructor(x: Int, y: Int) : this(x.toUInt(), y.toUInt())<!>
|
||||
}<!><!>
|
||||
}<!>
|
||||
|
||||
Reference in New Issue
Block a user