Skip to content

Typeclass instance for a partially-applied type synonym should fail with a proper error. #242

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
nanavati opened this issue Aug 5, 2020 · 1 comment

Comments

@nanavati
Copy link
Collaborator

nanavati commented Aug 5, 2020

FunctorCrash.bs.txt

The attached test case fails with:
Internal Bluespec Compiler Error:
Please report this failure to your Bluespec technical contact.
If you do not know your contact, you may email [email protected].
The following internal error message should be included in your
correspondence along with any other relevant details:
Bluespec Compiler (build 16071ee)
expandSyn,truncType
(1, 0, FunctorCrash.Functor FunctorCrash.Foo, FunctorCrash.Bar (TGen 0) (TGen 0))

I don't think this can actually work (instance-matching against a partially-applied type synonym doesn't make sense), but it should fail with a proper error.

@nanavati nanavati closed this as completed Aug 5, 2020
@nanavati
Copy link
Collaborator Author

nanavati commented Aug 5, 2020

This is a duplicate of #221

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

No branches or pull requests

1 participant