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

Imported record field access can trigger type checker exception #682

Closed
peblair opened this issue May 30, 2021 · 1 comment
Closed

Imported record field access can trigger type checker exception #682

peblair opened this issue May 30, 2021 · 1 comment

Comments

@peblair
Copy link
Member

peblair commented May 30, 2021

When deleting the : MatchResult annotation on this line, this error is raised:

 λ grain git:(regexp) ✗ > grain compiler/test/stdlib/regex.test.gr
/Users/pblair/views/grain/cli/bin/grainc.exe: internal error, uncaught exception:
                                              (Failure "Impossible: deprecated error type in typetexp")

This is not ideal. We should either correctly unify the type information to preclude an error altogether (preferable), or, if that is not possible for some reason, provide a better error message.
cc @ospencer

@ospencer
Copy link
Member

ospencer commented Jan 8, 2023

Fixed in #1200

@ospencer ospencer closed this as completed Jan 8, 2023
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

2 participants