Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

projecting from opaque pair #313

Open
ecavallo opened this issue Sep 12, 2018 · 0 comments
Open

projecting from opaque pair #313

ecavallo opened this issue Sep 12, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@ecavallo
Copy link
Collaborator

data unit where
| triv

opaque
let t : (A : type) × A = (unit, triv)

let a = t .snd

raises Failure("popl: empty"). Writing

let a : t .fst = t .snd

works fine.

@ecavallo ecavallo added the bug Something isn't working label Sep 12, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant