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

Struct tuple type alias should give better error message #7014

Open
NinoFloris opened this issue Jun 18, 2019 · 3 comments
Open

Struct tuple type alias should give better error message #7014

NinoFloris opened this issue Jun 18, 2019 · 3 comments
Labels
Area-Diagnostics mistakes and possible improvements to diagnostics Feature Improvement
Milestone

Comments

@NinoFloris
Copy link
Contributor

Struct tuple type alias should give better error message

type Alias = struct(int * int)

This just errors with Unexpected symbol '(' in member definition

You really have to know to wrap the full signature for it to succeed. Optionally a docs entry would help too.

As this works:

type Alias = (struct(int * int))
@smoothdeveloper
Copy link
Contributor

!!! I've hit that and thought it was a (rather odd) limitation of type aliases...

Another "some lisp baggage saves the day of some" moment 🙂

@cartermp cartermp added this to the Backlog milestone Jun 18, 2019
@voronoipotato
Copy link
Contributor

A good question imho is, should this even fail? I suppose I need to read the spec.

@auduchinok
Copy link
Member

A good question imho is, should this even fail?

I suppose it should be possible to write an abbreviation this way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Diagnostics mistakes and possible improvements to diagnostics Feature Improvement
Projects
Status: New
Development

No branches or pull requests

6 participants