[Spec tests] Actualize test for callable reference section

This commit is contained in:
anastasiia.spaseeva
2020-07-28 11:14:11 +03:00
parent 4db209648d
commit 1d83c59e80
2 changed files with 5 additions and 6 deletions
@@ -17,7 +17,6 @@
// FILE: TestCase1.kt // FILE: TestCase1.kt
/* /*
* TESTCASE NUMBER: 1 * TESTCASE NUMBER: 1
* UNEXPECTED BEHAVIOUR
* ISSUES: KT-39220 * ISSUES: KT-39220
*/ */
package testPackCase1 package testPackCase1
@@ -32,7 +31,7 @@ interface Foo {
fun <T> bar(f: KFunction2<T, String, String>) {} fun <T> bar(f: KFunction2<T, String, String>) {}
fun <T : Foo> main() { fun <T : Foo> main() {
bar<T>(<!TYPE_MISMATCH, TYPE_MISMATCH!>Foo::<!CALLABLE_REFERENCE_RESOLUTION_AMBIGUITY!>resolve<!><!>) // OK in OI, Ambiguity in NI bar<T>(Foo::resolve) // OK
bar<Foo>(Foo::resolve) // OK bar<Foo>(Foo::resolve) // OK
bar(Foo::resolve) // OK bar(Foo::resolve) // OK
} }
@@ -7,7 +7,7 @@
"casesNumber": 1, "casesNumber": 1,
"description": "SAM-type against similar functional type", "description": "SAM-type against similar functional type",
"path": "compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-1/pos/1.1.kt", "path": "compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-1/pos/1.1.kt",
"unexpectedBehaviour": true, "unexpectedBehaviour": false,
"linkType": "main" "linkType": "main"
} }
] ]
@@ -21,7 +21,7 @@
"casesNumber": 1, "casesNumber": 1,
"description": "SAM-type against similar functional type", "description": "SAM-type against similar functional type",
"path": "compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-1/pos/1.1.kt", "path": "compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-1/pos/1.1.kt",
"unexpectedBehaviour": true, "unexpectedBehaviour": false,
"linkType": "primary" "linkType": "primary"
}, },
{ {
@@ -63,7 +63,7 @@
"casesNumber": 1, "casesNumber": 1,
"description": "SAM-type against similar functional type", "description": "SAM-type against similar functional type",
"path": "compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-1/pos/1.1.kt", "path": "compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-1/pos/1.1.kt",
"unexpectedBehaviour": true, "unexpectedBehaviour": false,
"linkType": "primary" "linkType": "primary"
}, },
{ {
@@ -105,7 +105,7 @@
"casesNumber": 1, "casesNumber": 1,
"description": "SAM-type against similar functional type", "description": "SAM-type against similar functional type",
"path": "compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-1/pos/1.1.kt", "path": "compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-1/pos/1.1.kt",
"unexpectedBehaviour": true, "unexpectedBehaviour": false,
"linkType": "primary" "linkType": "primary"
}, },
{ {