Rename Extension annotation to ExtensionFunctionType

The old one is kept temporarily and will be removed later
This commit is contained in:
Alexander Udalov
2015-11-25 19:29:20 +03:00
parent 6d40d94127
commit 7449ad2763
36 changed files with 80 additions and 64 deletions
@@ -6,8 +6,8 @@ fun foo(<!UNUSED_PARAMETER!>a<!>: (String) -> Unit) {
interface A : (String) -> Unit {}
fun foo(<!UNUSED_PARAMETER!>a<!>: @Extension A) {
fun foo(<!UNUSED_PARAMETER!>a<!>: @ExtensionFunctionType 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<!>()
}
}