Skip to content
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

Constrained the type variables for classes #161

Merged
merged 1 commit into from
May 10, 2015
Merged

Constrained the type variables for classes #161

merged 1 commit into from
May 10, 2015

Conversation

EliasC
Copy link
Contributor

@EliasC EliasC commented May 6, 2015

Before this fix, the following two pieces of code were accepted:

class Foo<int>
class Foo<Bar>

This is now caught by the parser by making all primitives reserved words
and requiring type parameters to begin with a lower case letter.

Before this fix, the following two pieces of code was accepted:
```
class Foo<int>
```

```
class Foo<Bar>
```

This is now caught by the parser by making all primitives reserved words
and requiring type parameters to begin with a lower case letter.
@kaeluka
Copy link
Contributor

kaeluka commented May 10, 2015

Works for me. Tested by all other tests involving parametric classes, adding a new test would not add anything IMO.

kaeluka pushed a commit that referenced this pull request May 10, 2015
Constrained the type variables for classes
@kaeluka kaeluka merged commit 52d2ddf into parapluu:master May 10, 2015
@kaeluka kaeluka deleted the fix/type-parameter-names branch May 10, 2015 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants