[IR] update testdata: IrInstanceInitializerCall
This commit is contained in:
committed by
teamcityserver
parent
26dd009713
commit
e56787c0b0
+1
-1
@@ -22,7 +22,7 @@ interface IFoo {
|
||||
class DFoo : IFoo {
|
||||
constructor(d: IFoo) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ annotation class A : Annotation {
|
||||
class C {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+5
-5
@@ -10,7 +10,7 @@ annotation class TestAnn : Annotation {
|
||||
class TestClass {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ interface TestInterface {
|
||||
object TestObject {
|
||||
private constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ object TestObject {
|
||||
class Host {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ class Host {
|
||||
companion object TestCompanion {
|
||||
private constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ class Host {
|
||||
enum class TestEnum : Enum<TestEnum> {
|
||||
private constructor() /* primary */ {
|
||||
super/*Enum*/<TestEnum>()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ class TestClass {
|
||||
@TestAnn(x = 1)
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ annotation class A : Annotation {
|
||||
class Cell {
|
||||
constructor(value: Int) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -9,7 +9,7 @@ annotation class TestAnn : Annotation {
|
||||
open enum class TestEnum : Enum<TestEnum> {
|
||||
private constructor() /* primary */ {
|
||||
super/*Enum*/<TestEnum>()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ open enum class TestEnum : Enum<TestEnum> {
|
||||
private enum entry class ENTRY2 : TestEnum {
|
||||
private constructor() /* primary */ {
|
||||
super/*TestEnum*/() /*~> Unit */
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
enum class En : Enum<En> {
|
||||
private constructor() /* primary */ {
|
||||
super/*Enum*/<En>()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ annotation class Ann : Annotation {
|
||||
class Test {
|
||||
constructor(x: Int) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ annotation class A : Annotation {
|
||||
class C {
|
||||
constructor(x: Int, y: Int) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -11,7 +11,7 @@ var p: Int
|
||||
class C {
|
||||
constructor(p: Int) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -6,7 +6,7 @@ annotation class Ann : Annotation {
|
||||
class A {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ fun testFun(x: Int) {
|
||||
class TestClassConstructor1 {
|
||||
constructor(x: Int) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class C {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ val test1: Int /* by */
|
||||
class C {
|
||||
constructor(map: MutableMap<String, Any>) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ var String.test2: Int
|
||||
class Host {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ interface IBar {
|
||||
abstract class CFoo<T : Any?> {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ abstract class CFoo<T : Any?> {
|
||||
class Test1 : CFoo<String>, IFooStr, IBar {
|
||||
constructor() /* primary */ {
|
||||
super/*CFoo*/<String>()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class C<T : Any?> {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ class C<T : Any?> {
|
||||
object Delegate {
|
||||
private constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
inline class IT {
|
||||
constructor(x: Int) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ inline class IT {
|
||||
inline class InlineMutableSet : MutableSet<IT> {
|
||||
constructor(ms: MutableSet<IT>) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package interop
|
||||
object Definitions {
|
||||
private constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ interface I {
|
||||
class A : I {
|
||||
constructor(i: I) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ fun outer() {
|
||||
local abstract class ALocal {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ fun outer() {
|
||||
local class Local : ALocal {
|
||||
constructor() /* primary */ {
|
||||
super/*ALocal*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -14,7 +14,7 @@ expect open class B : A {
|
||||
abstract class A {
|
||||
protected constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ abstract class A {
|
||||
open class B : A {
|
||||
constructor(i: Int) /* primary */ {
|
||||
super/*A*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ expect enum class MyEnum : Enum<MyEnum> {
|
||||
enum class MyEnum : Enum<MyEnum> {
|
||||
private constructor() /* primary */ {
|
||||
super/*Enum*/<MyEnum>()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -11,7 +11,7 @@ expect class Add : Ops {
|
||||
sealed class Ops {
|
||||
private constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ sealed class Ops {
|
||||
class Add : Ops {
|
||||
constructor() /* primary */ {
|
||||
super/*Ops*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -8,14 +8,14 @@ interface TestInterface<T : Any?> {
|
||||
class Test<T0 : Any?> {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
class TestNested<T1 : Any?> {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ class Test<T0 : Any?> {
|
||||
inner class TestInner<T2 : Any?> {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class Test1<T1 : Any?, T2 : Any?> {
|
||||
constructor(x: T1, y: T2) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ class Test1<T1 : Any?, T2 : Any?> {
|
||||
class Test2 {
|
||||
constructor(x: Int, y: String) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ class Test2 {
|
||||
inner class TestInner<Z : Any?> {
|
||||
constructor(z: Z) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ class Test2 {
|
||||
class Test3 {
|
||||
constructor(x: Int, y: String = "") /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ class Test3 {
|
||||
class Test4<T : Any?> {
|
||||
constructor(x: Int) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
data class Test<T : Any?> {
|
||||
constructor(x: T, y: String = "") /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -10,7 +10,7 @@ var test2: Int
|
||||
class Host {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ class Host {
|
||||
class InPrimaryCtor<T : Any?> {
|
||||
constructor(testInPrimaryCtor1: T, testInPrimaryCtor2: Int = 42) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ interface IBase<T : Any?> {
|
||||
class Test<TT : Any?> : IBase<TT> {
|
||||
constructor(impl: IBase<TT>) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ fun String.textExt1(i: Int, j: String) {
|
||||
class Host {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -1,14 +1,14 @@
|
||||
class Outer<T1 : Any?> {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
inner class Inner<T2 : Any?> {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ var <T : Any?> T.testExt4: Int
|
||||
class Host<T : Any?> {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
class Test1<T : U, U : Any?> {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
abstract class Base1<T : Derived1> {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ abstract class Base1<T : Derived1> {
|
||||
class Derived1 : Base1<Derived1> {
|
||||
constructor() /* primary */ {
|
||||
super/*Base1*/<Derived1>()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ class Derived1 : Base1<Derived1> {
|
||||
abstract class Base2 {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ abstract class Base2 {
|
||||
class Derived2 : Base2 {
|
||||
constructor() /* primary */ {
|
||||
super/*Base2*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
class Test {
|
||||
constructor(x: Int = 0) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class C {
|
||||
constructor(test1: Int, test2: Int) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
class MyClass {
|
||||
constructor(value: String) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class Delegate {
|
||||
constructor(value: String) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ class Delegate {
|
||||
class DelegateProvider {
|
||||
constructor(value: String) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
class MyClass {
|
||||
constructor(value: String) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class Delegate {
|
||||
constructor(value: String) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ class Delegate {
|
||||
class DelegateProvider {
|
||||
constructor(value: String) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ class DelegateProvider {
|
||||
class Host {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -1,14 +1,14 @@
|
||||
object Host {
|
||||
private constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
class StringDelegate {
|
||||
constructor(s: String) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class Delegate {
|
||||
constructor(value: String) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ class Delegate {
|
||||
class DelegateProvider {
|
||||
constructor(value: String) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ fun foo() {
|
||||
class C {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* InstanceInitializerCall */
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user