Update forgotten test-data

This commit is contained in:
Mikhail Zarechenskiy
2020-06-01 15:35:24 +03:00
parent fd07d5f301
commit f073e34926
5 changed files with 11 additions and 11 deletions
@@ -35,7 +35,7 @@ object Test3 {
fun test(f: () -> Unit) { fun test(f: () -> Unit) {
val result = foo(1, f) val result = foo(1, f)
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Int")!>result<!> <!DEBUG_INFO_EXPRESSION_TYPE("kotlin.String")!>result<!>
} }
} }
@@ -18,7 +18,7 @@ object Test1 {
fun foo(r: Runnable) {} fun foo(r: Runnable) {}
fun test(f: () -> Unit) { fun test(f: () -> Unit) {
<!DEBUG_INFO_CALL("fqName: Test1.foo; typeCall: function")!>foo(f)<!> <!DEBUG_INFO_CALL("fqName: Test1.Scope.foo; typeCall: function")!>foo(f)<!>
} }
} }
} }
@@ -65,7 +65,7 @@ object Test5 {
fun foo(r: Runnable) {} fun foo(r: Runnable) {}
fun test() { fun test() {
<!DEBUG_INFO_CALL("fqName: Test5.foo; typeCall: function")!>foo { }<!> <!DEBUG_INFO_CALL("fqName: Test5.Scope.foo; typeCall: function")!>foo { }<!>
} }
} }
} }
@@ -29,7 +29,7 @@ object Test2 {
fun test() { fun test() {
val result = foo(::bar) val result = foo(::bar)
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Int")!>result<!> <!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Double")!>result<!>
} }
} }
} }
@@ -16,12 +16,12 @@ fun test(
foo1 { "str" } foo1 { "str" }
foo1(f0) foo1(f0)
foo1(f1) <!INAPPLICABLE_CANDIDATE!>foo1<!>(f1)
foo2(f2) <!INAPPLICABLE_CANDIDATE!>foo2<!>(f2)
foo3(f3) <!INAPPLICABLE_CANDIDATE!>foo3<!>(f3)
foo1(::bar) <!INAPPLICABLE_CANDIDATE!>foo1<!>(::bar)
foo1(f2) <!INAPPLICABLE_CANDIDATE!>foo1<!>(f2)
foo1(f3) <!INAPPLICABLE_CANDIDATE!>foo1<!>(f3)
} }
@@ -15,5 +15,5 @@ fun test4(): suspend () -> Unit = useSuspendFn {}
fun test5() = useSuspendFn {} fun test5() = useSuspendFn {}
fun test5(sfn: suspend () -> Unit) = ambiguous(sfn) fun test5(sfn: suspend () -> Unit) = ambiguous(sfn)
fun test6(fn: () -> Unit) = <!COMPATIBILITY_WARNING!>ambiguous(fn)<!> fun test6(fn: () -> Unit) = ambiguous(fn)
fun test7(): () -> Unit = <!OVERLOAD_RESOLUTION_AMBIGUITY!>ambiguous<!> {} fun test7(): () -> Unit = <!OVERLOAD_RESOLUTION_AMBIGUITY!>ambiguous<!> {}