[Spec tests] Actualize test for callable reference section
This commit is contained in:
+1
-2
@@ -17,7 +17,6 @@
|
||||
// FILE: TestCase1.kt
|
||||
/*
|
||||
* TESTCASE NUMBER: 1
|
||||
* UNEXPECTED BEHAVIOUR
|
||||
* ISSUES: KT-39220
|
||||
*/
|
||||
package testPackCase1
|
||||
@@ -32,7 +31,7 @@ interface Foo {
|
||||
fun <T> bar(f: KFunction2<T, String, String>) {}
|
||||
|
||||
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::resolve) // OK
|
||||
}
|
||||
+4
-4
@@ -7,7 +7,7 @@
|
||||
"casesNumber": 1,
|
||||
"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",
|
||||
"unexpectedBehaviour": true,
|
||||
"unexpectedBehaviour": false,
|
||||
"linkType": "main"
|
||||
}
|
||||
]
|
||||
@@ -21,7 +21,7 @@
|
||||
"casesNumber": 1,
|
||||
"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",
|
||||
"unexpectedBehaviour": true,
|
||||
"unexpectedBehaviour": false,
|
||||
"linkType": "primary"
|
||||
},
|
||||
{
|
||||
@@ -63,7 +63,7 @@
|
||||
"casesNumber": 1,
|
||||
"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",
|
||||
"unexpectedBehaviour": true,
|
||||
"unexpectedBehaviour": false,
|
||||
"linkType": "primary"
|
||||
},
|
||||
{
|
||||
@@ -105,7 +105,7 @@
|
||||
"casesNumber": 1,
|
||||
"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",
|
||||
"unexpectedBehaviour": true,
|
||||
"unexpectedBehaviour": false,
|
||||
"linkType": "primary"
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user