Introduce FIR_IDENTICAL for FIR vs old frontend tests #KT-36879 Fixed
This commit is contained in:
Vendored
-4
@@ -1,4 +0,0 @@
|
||||
class A {
|
||||
constructor()
|
||||
init {}
|
||||
}
|
||||
Vendored
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
class A {
|
||||
constructor()
|
||||
init {}
|
||||
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
fun foo(x: Outer) = 1
|
||||
class Outer {
|
||||
inner class Inner {
|
||||
constructor(x: Int)
|
||||
constructor(x: Int, y: Int, z: Int = x + foo(this@Outer)) : this(x + foo(this@Outer))
|
||||
}
|
||||
}
|
||||
Vendored
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
fun foo(x: Outer) = 1
|
||||
class Outer {
|
||||
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
class Outer {
|
||||
val prop = 1
|
||||
inner class Inner {
|
||||
constructor(x: Int)
|
||||
constructor(x: Int, y: Int, z: Int = x + prop + this@Outer.prop) : this(x + prop + this@Outer.prop)
|
||||
}
|
||||
}
|
||||
Vendored
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
class Outer {
|
||||
val prop = 1
|
||||
|
||||
Vendored
-15
@@ -1,15 +0,0 @@
|
||||
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)
|
||||
}
|
||||
Vendored
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
class A {
|
||||
val x: Int
|
||||
val y: Int
|
||||
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
class A<T1, T2> {
|
||||
constructor(block: (T1) -> T2)
|
||||
constructor(x: T2): this({ x })
|
||||
}
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
class A<T1, T2> {
|
||||
constructor(block: (T1) -> T2)
|
||||
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
// do not report generate empty synthetic constructor by primary as it leads to CONFLICTING_JVM_DECLARATIONS
|
||||
class A(val x: Int = 1, val y: Int = 2) {
|
||||
constructor(): this(0, 0)
|
||||
}
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// do not report generate empty synthetic constructor by primary as it leads to CONFLICTING_JVM_DECLARATIONS
|
||||
class A(val x: Int = 1, val y: Int = 2) {
|
||||
constructor(): this(0, 0)
|
||||
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
open class B
|
||||
interface C
|
||||
interface D
|
||||
class A : C, B, D {
|
||||
constructor()
|
||||
}
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
open class B
|
||||
interface C
|
||||
interface D
|
||||
|
||||
Reference in New Issue
Block a user