[IR] update testdata: unify representation for error nodes
This commit is contained in:
committed by
teamcityserver
parent
ef9a901635
commit
7df6575a18
+10
-9
@@ -1,5 +1,5 @@
|
||||
fun test(fn: Function0<Unit>, r: Runnable, arr: Array<String>) {
|
||||
error("") /* ERROR CALL */local fun <anonymous>() {
|
||||
error("") /* ErrorCallExpression */local fun <anonymous>() {
|
||||
return Unit
|
||||
}
|
||||
; arr;
|
||||
@@ -7,13 +7,13 @@ fun test(fn: Function0<Unit>, r: Runnable, arr: Array<String>) {
|
||||
return Unit
|
||||
}
|
||||
/*-> Runnable? */, strs = [*arr]) /*~> Unit */
|
||||
error("") /* ERROR CALL */fn; arr;
|
||||
error("") /* ErrorCallExpression */fn; arr;
|
||||
foo1(r = fn /*-> Runnable? */, strs = [*arr]) /*~> Unit */
|
||||
foo1(r = r, strs = [""]) /*~> Unit */
|
||||
error("") /* ERROR CALL */fn; arr;
|
||||
error("") /* ErrorCallExpression */fn; arr;
|
||||
foo1(r = fn /*-> Runnable? */, strs = [*arr]) /*~> Unit */
|
||||
foo1(r = r, strs = [*arr]) /*~> Unit */
|
||||
val i1: ErrorType /* ERROR */ = error("") /* ERROR CALL */local fun <anonymous>() {
|
||||
val i1: ErrorType = error("") /* ErrorCallExpression */local fun <anonymous>() {
|
||||
return Unit
|
||||
}
|
||||
; arr;
|
||||
@@ -21,7 +21,7 @@ fun test(fn: Function0<Unit>, r: Runnable, arr: Array<String>) {
|
||||
return Unit
|
||||
}
|
||||
/*-> Runnable? */, strs = [*arr])
|
||||
val i3: ErrorType /* ERROR */ = error("") /* ERROR CALL */local fun <anonymous>() {
|
||||
val i3: ErrorType = error("") /* ErrorCallExpression */local fun <anonymous>() {
|
||||
return Unit
|
||||
}
|
||||
; local fun <anonymous>() {
|
||||
@@ -43,26 +43,27 @@ fun test(fn: Function0<Unit>, r: Runnable, arr: Array<String>) {
|
||||
return Unit
|
||||
}
|
||||
/*-> Runnable? */, strs = [*arr])
|
||||
error("") /* ERROR CALL */local fun <anonymous>() {
|
||||
error("") /* ErrorCallExpression */local fun <anonymous>() {
|
||||
return Unit
|
||||
}
|
||||
; local fun <anonymous>() {
|
||||
return Unit
|
||||
}
|
||||
; arr;
|
||||
error("") /* ERROR CALL */r; local fun <anonymous>() {
|
||||
error("") /* ErrorCallExpression */r; local fun <anonymous>() {
|
||||
return Unit
|
||||
}
|
||||
; "";
|
||||
error("") /* ERROR CALL */local fun <anonymous>() {
|
||||
error("") /* ErrorCallExpression */local fun <anonymous>() {
|
||||
return Unit
|
||||
}
|
||||
; local fun <anonymous>() {
|
||||
return Unit
|
||||
}
|
||||
; arr;
|
||||
error("") /* ERROR CALL */r; local fun <anonymous>() {
|
||||
error("") /* ErrorCallExpression */r; local fun <anonymous>() {
|
||||
return Unit
|
||||
}
|
||||
; arr;
|
||||
}
|
||||
|
||||
|
||||
+3
-2
@@ -44,13 +44,14 @@ fun test6(a: Any) {
|
||||
|
||||
fun test7(a: Function1<Int, Int>) {
|
||||
a as Function0<Unit> /*~> Unit */
|
||||
error("") /* ERROR CALL */a /*as Function0<Unit> */;
|
||||
error("") /* ErrorCallExpression */a /*as Function0<Unit> */;
|
||||
}
|
||||
|
||||
fun test8(a: Function0<Unit>) {
|
||||
error("") /* ERROR CALL */id<Function0<Unit>?>(x = a);
|
||||
error("") /* ErrorCallExpression */id<Function0<Unit>?>(x = a);
|
||||
}
|
||||
|
||||
fun test9() {
|
||||
J().run1(r = ::test9 /*-> Runnable? */)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user