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

Constructors can be marked as erased #4200

Closed
nad opened this issue Nov 15, 2019 · 0 comments
Closed

Constructors can be marked as erased #4200

nad opened this issue Nov 15, 2019 · 0 comments
Assignees
Labels
difficulty: easy Supposedly easy to fix. erasure not-in-changelog This issue should not be listed in the changelog. type: bug Issues and pull requests about actual bugs
Milestone

Comments

@nad
Copy link
Contributor

nad commented Nov 15, 2019

The following code is accepted:

open import Agda.Builtin.Bool

data D : Set where
  c₁ : D
  @0 c₂ : D

d : D
d = c₂

f : D  Bool
f c₁ = true
f c₂ = false

Limited testing suggests that the @0 annotation does not have any effect on type-checking or compilation.

@nad nad added type: bug Issues and pull requests about actual bugs erasure labels Nov 15, 2019
@nad nad added this to the 2.6.1 milestone Nov 15, 2019
@nad nad added the not-in-changelog This issue should not be listed in the changelog. label Nov 20, 2019
@andreasabel andreasabel self-assigned this Dec 3, 2019
@andreasabel andreasabel added the difficulty: easy Supposedly easy to fix. label Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty: easy Supposedly easy to fix. erasure not-in-changelog This issue should not be listed in the changelog. type: bug Issues and pull requests about actual bugs
Projects
None yet
Development

No branches or pull requests

2 participants