[IR] update testdata: better support for callable references

This commit is contained in:
Zalim Bashorov
2020-11-11 16:10:20 +03:00
committed by teamcityserver
parent 0d3d61862b
commit 8f155c23a0
16 changed files with 47 additions and 47 deletions
@@ -13,7 +13,7 @@ fun test() {
receiver.id() /*~> Unit */
}
::id
"Fail"::id
})
}
@@ -32,7 +32,7 @@ inline fun <A : Any?, B : Any?> foo(a: A, b: B, x: Function2<A, B, Inner<B, A>>)
fun box(): String {
val z: Foo<String> = Foo<String>()
val foo: Inner<String, String> = foo<String, String>(a = "O", b = "K", x = ::<init>)
val foo: Inner<String, String> = foo<String, String>(a = "O", b = "K", x = z::<init>/*<String>()*/)
return foo.<get-a>().plus(other = foo.<get-b>())
}
@@ -42,7 +42,7 @@ fun testInnerClassConstructor(outer: Outer): Any {
return receiver.Inner(xs = [p0])
}
::<init>
outer::<init>
})
}
@@ -52,7 +52,7 @@ fun testInnerClassConstructorCapturingOuter(): Any {
return receiver.Inner(xs = [p0])
}
::<init>
Outer()::<init>
})
}
@@ -18,18 +18,18 @@ object Foo {
}
val test1: KProperty0<String>
field = ::a
field = Foo::a
get
val test1a: KProperty0<String>
field = ::a
field = Foo::a
get
val test2: KFunction0<String>
field = ::foo
field = Foo::foo
get
val test2a: KFunction0<String>
field = ::foo
field = Foo::foo
get
@@ -94,7 +94,7 @@ fun testWithBoundReceiver() {
receiver.bar()
}
::bar
C()::bar
})
}
@@ -17,14 +17,14 @@ inline fun <reified T : Any?> topLevel2(x: List<T>) {
}
val test1: Function1<Int, Unit>
field = ::topLevel1
field = ::topLevel1/*<Int>()*/
get
val test2: Function1<List<String>, Unit>
field = ::topLevel2
field = ::topLevel2/*<String>()*/
get
val test3: Function1<Int, Unit>
field = ::objectMember
field = Host::objectMember/*<Int>()*/
get
@@ -43,7 +43,7 @@ fun testBound(a: A) {
receiver.foo(xs = [p0]) /*~> Unit */
}
::foo
a::foo
})
}
@@ -53,7 +53,7 @@ fun testObject() {
receiver.foo(xs = [p0]) /*~> Unit */
}
::foo
Obj::foo
})
}
@@ -61,7 +61,7 @@ fun testImportedObjectMember(): String {
return importedObjectMemberWithVarargs(xs = [p0])
}
::importedObjectMemberWithVarargs
Host::importedObjectMemberWithVarargs
})
}
@@ -19,7 +19,7 @@ class Host {
receiver.withVararg(xs = [p0]) /*~> Unit */
}
::withVararg
<this>::withVararg
})
}
@@ -30,7 +30,7 @@ class Host {
receiver.withVararg(xs = [p0]) /*~> Unit */
}
::withVararg
h::withVararg
})
}
@@ -41,7 +41,7 @@ class Host {
receiver.withVararg(xs = [p0]) /*~> Unit */
}
::withVararg
h::withVararg
})
}
@@ -51,7 +51,7 @@ class Host {
receiver.withVararg(xs = [p0]) /*~> Unit */
}
::withVararg
h::withVararg
})
}
@@ -61,7 +61,7 @@ class Host {
receiver.withVararg(xs = [p0]) /*~> Unit */
}
::withVararg
Host()::withVararg
})
}