[IR] update testdata
This commit is contained in:
committed by
teamcityserver
parent
6a1ab1b325
commit
fc5c674c60
Vendored
+1
-1
@@ -8,7 +8,7 @@ fun String.id(s: String = <this>, vararg xs: Int): String {
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo(x = { //BLOCK
|
||||
foo(x = { // BLOCK
|
||||
local fun String.id() {
|
||||
id($receiver = receiver, ) /*~> Unit */
|
||||
}
|
||||
|
||||
+7
-7
@@ -55,7 +55,7 @@ fun withVararg(vararg xs: Int): Int {
|
||||
}
|
||||
|
||||
fun test1() {
|
||||
{ //BLOCK
|
||||
{ // BLOCK
|
||||
val tmp0_array: A = A
|
||||
val tmp2_sam: IFoo = local fun withVararg(p0: Int) {
|
||||
withVararg(xs = [p0]) /*~> Unit */
|
||||
@@ -66,7 +66,7 @@ fun test1() {
|
||||
}
|
||||
|
||||
fun test2() {
|
||||
{ //BLOCK
|
||||
{ // BLOCK
|
||||
val tmp0_array: B = B
|
||||
val tmp2_sam: IFoo2 = local fun withVararg(p0: Int) {
|
||||
withVararg(xs = [p0]) /*~> Unit */
|
||||
@@ -77,7 +77,7 @@ fun test2() {
|
||||
}
|
||||
|
||||
fun test3(fn: Function1<Int, Unit>) {
|
||||
{ //BLOCK
|
||||
{ // BLOCK
|
||||
val tmp0_array: A = A
|
||||
val tmp2_sam: IFoo = fn /*-> IFoo */
|
||||
set($receiver = tmp0_array, i = tmp2_sam, newValue = get($receiver = tmp0_array, i = tmp2_sam).plus(other = 1))
|
||||
@@ -86,8 +86,8 @@ fun test3(fn: Function1<Int, Unit>) {
|
||||
|
||||
fun test4(fn: Function1<Int, Unit>) {
|
||||
when {
|
||||
fn is IFoo -> { //BLOCK
|
||||
{ //BLOCK
|
||||
fn is IFoo -> { // BLOCK
|
||||
{ // BLOCK
|
||||
val tmp0_array: A = A
|
||||
val tmp1_index0: Function1<Int, Unit> = fn
|
||||
set($receiver = tmp0_array, i = tmp1_index0 /*as IFoo */, newValue = get($receiver = tmp0_array, i = tmp1_index0 /*as IFoo */).plus(other = 1))
|
||||
@@ -98,7 +98,7 @@ fun test4(fn: Function1<Int, Unit>) {
|
||||
|
||||
fun test5(a: Any) {
|
||||
a as Function1<Int, Unit> /*~> Unit */
|
||||
{ //BLOCK
|
||||
{ // BLOCK
|
||||
val tmp0_array: A = A
|
||||
val tmp2_sam: IFoo = a /*as Function1<@ParameterName(...) Int, Unit> */ /*-> IFoo */
|
||||
set($receiver = tmp0_array, i = tmp2_sam, newValue = get($receiver = tmp0_array, i = tmp2_sam).plus(other = 1))
|
||||
@@ -108,7 +108,7 @@ fun test5(a: Any) {
|
||||
fun test6(a: Any) {
|
||||
a as Function1<Int, Unit> /*~> Unit */
|
||||
a as IFoo /*~> Unit */
|
||||
{ //BLOCK
|
||||
{ // BLOCK
|
||||
val tmp0_array: A = A
|
||||
val tmp1_index0: Any = a
|
||||
set($receiver = tmp0_array, i = tmp1_index0 /*as IFoo */, newValue = get($receiver = tmp0_array, i = tmp1_index0 /*as IFoo */).plus(other = 1))
|
||||
|
||||
Vendored
+2
-2
@@ -46,7 +46,7 @@ fun testConstructor(): Any {
|
||||
}
|
||||
|
||||
fun testInnerClassConstructor(outer: Outer): Any {
|
||||
return use(fn = { //BLOCK
|
||||
return use(fn = { // BLOCK
|
||||
local fun Outer.<init>(p0: Int): Inner {
|
||||
return TODO("IrConstructorCall")
|
||||
}
|
||||
@@ -57,7 +57,7 @@ fun testInnerClassConstructor(outer: Outer): Any {
|
||||
}
|
||||
|
||||
fun testInnerClassConstructorCapturingOuter(): Any {
|
||||
return use(fn = { //BLOCK
|
||||
return use(fn = { // BLOCK
|
||||
local fun Outer.<init>(p0: Int): Inner {
|
||||
return TODO("IrConstructorCall")
|
||||
}
|
||||
|
||||
+1
-1
@@ -92,7 +92,7 @@ fun testWithDefaults() {
|
||||
}
|
||||
|
||||
fun testWithBoundReceiver() {
|
||||
useSuspend(fn = { //BLOCK
|
||||
useSuspend(fn = { // BLOCK
|
||||
local suspend fun C.bar() {
|
||||
receiver.bar()
|
||||
}
|
||||
|
||||
+2
-2
@@ -44,7 +44,7 @@ fun testUnbound() {
|
||||
}
|
||||
|
||||
fun testBound(a: A) {
|
||||
use2(fn = { //BLOCK
|
||||
use2(fn = { // BLOCK
|
||||
local fun A.foo(p0: Int) {
|
||||
receiver.foo(xs = [p0]) /*~> Unit */
|
||||
}
|
||||
@@ -55,7 +55,7 @@ fun testBound(a: A) {
|
||||
}
|
||||
|
||||
fun testObject() {
|
||||
use2(fn = { //BLOCK
|
||||
use2(fn = { // BLOCK
|
||||
local fun Obj.foo(p0: Int) {
|
||||
receiver.foo(xs = [p0]) /*~> Unit */
|
||||
}
|
||||
|
||||
+1
-1
@@ -59,7 +59,7 @@ fun testCoercionToUnit() {
|
||||
}
|
||||
|
||||
fun testImportedObjectMember(): String {
|
||||
return use(fn = { //BLOCK
|
||||
return use(fn = { // BLOCK
|
||||
local fun importedObjectMemberWithVarargs(p0: Int): String {
|
||||
return importedObjectMemberWithVarargs(xs = [p0])
|
||||
}
|
||||
|
||||
Vendored
+5
-5
@@ -14,7 +14,7 @@ class Host {
|
||||
}
|
||||
|
||||
fun testImplicitThis() {
|
||||
use(fn = { //BLOCK
|
||||
use(fn = { // BLOCK
|
||||
local fun Host.withVararg(p0: Int) {
|
||||
receiver.withVararg(xs = [p0]) /*~> Unit */
|
||||
}
|
||||
@@ -26,7 +26,7 @@ class Host {
|
||||
|
||||
fun testBoundReceiverLocalVal() {
|
||||
val h: Host = TODO("IrConstructorCall")
|
||||
use(fn = { //BLOCK
|
||||
use(fn = { // BLOCK
|
||||
local fun Host.withVararg(p0: Int) {
|
||||
receiver.withVararg(xs = [p0]) /*~> Unit */
|
||||
}
|
||||
@@ -38,7 +38,7 @@ class Host {
|
||||
|
||||
fun testBoundReceiverLocalVar() {
|
||||
var h: Host = TODO("IrConstructorCall")
|
||||
use(fn = { //BLOCK
|
||||
use(fn = { // BLOCK
|
||||
local fun Host.withVararg(p0: Int) {
|
||||
receiver.withVararg(xs = [p0]) /*~> Unit */
|
||||
}
|
||||
@@ -49,7 +49,7 @@ class Host {
|
||||
}
|
||||
|
||||
fun testBoundReceiverParameter(h: Host) {
|
||||
use(fn = { //BLOCK
|
||||
use(fn = { // BLOCK
|
||||
local fun Host.withVararg(p0: Int) {
|
||||
receiver.withVararg(xs = [p0]) /*~> Unit */
|
||||
}
|
||||
@@ -60,7 +60,7 @@ class Host {
|
||||
}
|
||||
|
||||
fun testBoundReceiverExpression() {
|
||||
use(fn = { //BLOCK
|
||||
use(fn = { // BLOCK
|
||||
local fun Host.withVararg(p0: Int) {
|
||||
receiver.withVararg(xs = [p0]) /*~> Unit */
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
fun sum(vararg args: Int): Int {
|
||||
var result: Int = 0
|
||||
{ //BLOCK
|
||||
{ // BLOCK
|
||||
val tmp0_iterator: IntIterator = args.iterator()
|
||||
while (tmp0_iterator.hasNext()) { //BLOCK
|
||||
while (tmp0_iterator.hasNext()) { // BLOCK
|
||||
val arg: Int = tmp0_iterator.next()
|
||||
result = result.plus(other = arg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user