Skip to content

Collective extension methods drop annotations #7569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bishabosha opened this issue Nov 17, 2019 · 1 comment
Closed

Collective extension methods drop annotations #7569

bishabosha opened this issue Nov 17, 2019 · 1 comment

Comments

@bishabosha
Copy link
Member

bishabosha commented Nov 17, 2019

minimized code

given fooOps: [A](a: A) with

  @nonsense
  def foo = ???

expectation

Either an error that annotations are not accepted in this position, or a type error because nonsense can't be found

notes

the parser accepts the annotation, as seen by output with Xprint:parser:

parsed:
package <empty> {
  given object fooOps[A](a: A) {
    @nonsense() def foo = ???
  }
}

but it is dropped by the end of frontend

@bishabosha
Copy link
Member Author

This was fixed in #7572 but the linked issue from that was PR incorrect, (but already closed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant