Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

"require" clauses need to be able to take generic types #105

Open
ericlippert opened this issue Sep 5, 2017 · 0 comments
Open

"require" clauses need to be able to take generic types #105

ericlippert opened this issue Sep 5, 2017 · 0 comments

Comments

@ericlippert
Copy link
Contributor

The require clauses have the grammars:

    require-extends-clause:
      require  extends  qualified-name  ;

    require-implements-clause:
      require  implements  qualified-name  ;

But we wish to allow parsing

class Foo<T> { }
trait Bar { 
    require extends Foo<int>; 
}

which does note match that grammar. The grammar should be updated to allow more than just qualified names here.

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

No branches or pull requests

1 participant