0c00e79024
`directExpansionType` is needed here for cases like `typealias S = @S Suppress`. Otherwise, `fullyExpandedType` would cache the same typealias
15 lines
431 B
Kotlin
Vendored
15 lines
431 B
Kotlin
Vendored
fun foo(a: (String) -> Unit) {
|
|
"".<!UNRESOLVED_REFERENCE!>a<!>()
|
|
}
|
|
|
|
|
|
|
|
interface A : (String) -> Unit {}
|
|
typealias AliasedEFT = ExtensionFunctionType
|
|
|
|
fun foo(a: <!WRONG_EXTENSION_FUNCTION_TYPE_WARNING!>@AliasedEFT<!> A) {
|
|
// @Extension annotation on an unrelated type shouldn't have any effect on this diagnostic.
|
|
// Only kotlin.Function{n} type annotated with @Extension should
|
|
"".<!UNRESOLVED_REFERENCE!>a<!>()
|
|
}
|