Skip to content

Instantly share code, notes, and snippets.

@raphw
Last active January 19, 2016 14:45
Show Gist options
  • Save raphw/1fad435686fee44ca0ea to your computer and use it in GitHub Desktop.
Save raphw/1fad435686fee44ca0ea to your computer and use it in GitHub Desktop.
Illegal receiver type specification: Annotate type path.
class Foo {
class Bar {
void qux(@TypeAnnotation Foo.@TypeAnnotation Bar this) { } // Foo is treated as owner type.
}
}
@Target(ElementType.TYPE_USE)
@Retention(RetentionPolicy.RUNTIME)
@interface TypeAnnotation { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment