Update test data for tower resolution algorithm
- locals win - unary calls to plus/minus are not supported in favor of unaryPlus/unaryMinus - unqualified nested classes are temporarily reported as unresolved - function without receiver win against extension function - explicit import win against star import
This commit is contained in:
committed by
Stanislav Erokhin
parent
66a031f7a0
commit
239502368a
@@ -1,13 +1,13 @@
|
||||
fun foo(a: (String) -> Unit) {
|
||||
"".<!INVOKE_EXTENSION_ON_NOT_EXTENSION_FUNCTION!>a<!>()
|
||||
fun foo(<!UNUSED_PARAMETER!>a<!>: (String) -> Unit) {
|
||||
"".<!UNRESOLVED_REFERENCE!>a<!>()
|
||||
}
|
||||
|
||||
|
||||
|
||||
interface A : (String) -> Unit {}
|
||||
|
||||
fun foo(a: @Extension A) {
|
||||
fun foo(<!UNUSED_PARAMETER!>a<!>: @Extension A) {
|
||||
// @Extension annotation on an unrelated type shouldn't have any effect on this diagnostic.
|
||||
// Only kotlin.Function{n} type annotated with @Extension should
|
||||
"".<!INVOKE_EXTENSION_ON_NOT_EXTENSION_FUNCTION!>a<!>()
|
||||
"".<!UNRESOLVED_REFERENCE!>a<!>()
|
||||
}
|
||||
Reference in New Issue
Block a user