Skip to content

Commit

Permalink
[IR] update testdata: support for IrDelegatingConstructorCall
Browse files Browse the repository at this point in the history
  • Loading branch information
bashor authored and teamcityserver committed Nov 25, 2020
1 parent 84d6e43 commit b518c19
Show file tree
Hide file tree
Showing 198 changed files with 393 additions and 390 deletions.
2 changes: 1 addition & 1 deletion compiler/testData/ir/irText/classes/abstractMembers.kt.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
abstract class AbstractClass {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
open class Base {
constructor(x: Int, y: Int) /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand All @@ -21,7 +21,7 @@ open class Base {
class Test1 : Base {
constructor(xx: Int, yy: Int) /* primary */ {
{ // BLOCK
TODO("IrDelegatingConstructorCall")
super/*Base*/(x = xx, y = yy)
}
/* InstanceInitializerCall */

Expand All @@ -35,15 +35,15 @@ class Test1 : Base {
class Test2 : Base {
constructor(xx: Int, yy: Int) {
{ // BLOCK
TODO("IrDelegatingConstructorCall")
super/*Base*/(x = xx, y = yy)
}
/* InstanceInitializerCall */

}

constructor(xxx: Int, yyy: Int, a: Any) {
{ // BLOCK
TODO("IrDelegatingConstructorCall")
this/*Test2*/(xx = xxx, yy = yyy)
}
}

Expand Down
8 changes: 4 additions & 4 deletions compiler/testData/ir/irText/classes/classMembers.kt.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class C {
constructor(x: Int, y: Int, z: Int = 1) /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand All @@ -15,7 +15,7 @@ class C {
set

constructor() {
TODO("IrDelegatingConstructorCall")
this/*C*/(x = 0, y = 0, z = 0)
}

val property: Int
Expand Down Expand Up @@ -45,7 +45,7 @@ class C {

class NestedClass {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand Down Expand Up @@ -76,7 +76,7 @@ class C {

companion object Companion {
private constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand Down
4 changes: 2 additions & 2 deletions compiler/testData/ir/irText/classes/classes.kt.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class TestClass {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand All @@ -18,7 +18,7 @@ interface TestInterface {

object TestObject {
private constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand Down
6 changes: 3 additions & 3 deletions compiler/testData/ir/irText/classes/cloneable.kt.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class A : Cloneable {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand All @@ -20,7 +20,7 @@ interface I : Cloneable {

class C : I {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand All @@ -33,7 +33,7 @@ class C : I {

class OC : I {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand Down
8 changes: 4 additions & 4 deletions compiler/testData/ir/irText/classes/companionObject.kt.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
class Test1 {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}

companion object Companion {
private constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand All @@ -24,14 +24,14 @@ class Test1 {

class Test2 {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}

companion object Named {
private constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data class Test1 {
constructor(stringArray: Array<String>, charArray: CharArray, booleanArray: BooleanArray, byteArray: ByteArray, shortArray: ShortArray, intArray: IntArray, longArray: LongArray, floatArray: FloatArray, doubleArray: DoubleArray) /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand Down Expand Up @@ -167,7 +167,7 @@ dataClassArrayMemberToString(arg0 = #doubleArray) +

data class Test2<T : Any?> {
constructor(genericArray: Array<T>) /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand Down Expand Up @@ -213,7 +213,7 @@ dataClassArrayMemberToString(arg0 = #genericArray) +

data class Test3 {
constructor(anyArrayN: Array<Any>?) /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand Down
6 changes: 3 additions & 3 deletions compiler/testData/ir/irText/classes/dataClasses.kt.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data class Test1 {
constructor(x: Int, y: String, z: Any) /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand Down Expand Up @@ -77,7 +77,7 @@ data class Test1 {

data class Test2 {
constructor(x: Any?) /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand Down Expand Up @@ -126,7 +126,7 @@ data class Test2 {

data class Test3 {
constructor(d: Double, dn: Double?, f: Float, df: Float?) /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand Down
8 changes: 4 additions & 4 deletions compiler/testData/ir/irText/classes/dataClassesGeneric.kt.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data class Test1<T : Any?> {
constructor(x: T) /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand Down Expand Up @@ -49,7 +49,7 @@ data class Test1<T : Any?> {

data class Test2<T : Number> {
constructor(x: T) /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand Down Expand Up @@ -95,7 +95,7 @@ data class Test2<T : Number> {

data class Test3<T : Any?> {
constructor(x: List<T>) /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand Down Expand Up @@ -141,7 +141,7 @@ data class Test3<T : Any?> {

data class Test4 {
constructor(x: List<String>) /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface IBase<A : Any?> {

class Test1<E : Any?> : IBase<E> {
constructor(i: IBase<E>) /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand Down Expand Up @@ -44,7 +44,7 @@ class Test1<E : Any?> : IBase<E> {

class Test2 : IBase<String> {
constructor(j: IBase<String>) /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface IBase {

object BaseImpl : IBase {
private constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand Down Expand Up @@ -53,7 +53,7 @@ fun otherImpl(x0: String, y0: Int): IOther {
return { // BLOCK
local class <no name provided> : IOther {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand Down Expand Up @@ -91,7 +91,7 @@ fun otherImpl(x0: String, y0: Int): IOther {

class Test1 : IBase {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand All @@ -116,7 +116,7 @@ class Test1 : IBase {

class Test2 : IBase, IOther {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class Test : J {
constructor(j: J) /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface IFooBar {

object FooBarImpl : IFooBar {
private constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand All @@ -26,7 +26,7 @@ object FooBarImpl : IFooBar {

class C : IFooBar {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
open class Cell<T : Any?> {
constructor(value: T) /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand All @@ -18,7 +18,7 @@ typealias CT<T : Any?> = Cell<T>
typealias CStr = Cell<String>
class C1 : Cell<String> {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Cell*/<String>(value = "O")
/* InstanceInitializerCall */

}
Expand All @@ -30,7 +30,7 @@ class C1 : Cell<String> {

class C2 : Cell<String> {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Cell*/<String>(value = "K")
/* InstanceInitializerCall */

}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
open class Base {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
super/*Any*/()
/* InstanceInitializerCall */

}
Expand All @@ -12,19 +12,19 @@ open class Base {

class Test : Base {
constructor() {
TODO("IrDelegatingConstructorCall")
super/*Base*/()
/* InstanceInitializerCall */

}

constructor(xx: Int) {
TODO("IrDelegatingConstructorCall")
super/*Base*/()
/* InstanceInitializerCall */

}

constructor(xx: Short) {
TODO("IrDelegatingConstructorCall")
this/*Test*/()
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ open enum class A : Enum<A> {
}

private constructor(x: Int) {
TODO("IrDelegatingConstructorCall")
this/*A*/(arg = x.toString())
<this>.<set-prop3>(<set-?> = "int")
}

Expand Down
Loading

0 comments on commit b518c19

Please sign in to comment.