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

Hole in the middle of a record is malformed #5463

Closed
laMudri opened this issue Jul 1, 2021 · 3 comments
Closed

Hole in the middle of a record is malformed #5463

laMudri opened this issue Jul 1, 2021 · 3 comments
Assignees
Labels
meta Metavariables, insertion of implicit arguments, etc records Record declarations, literals, constructors and updates ux: interaction Issues to do with interactive development (holes, case splitting, etc)
Milestone

Comments

@laMudri
Copy link

laMudri commented Jul 1, 2021

The following code gives the error below.

Code:

open import Agda.Primitive using (Level; lsuc)

record Foo (o : Level) : Set (lsuc o) where

  field
    Obj : Set o
    Hom : Set o

  Sub : Set ?
  Sub = Hom

  field
    id : Set o

Error:

Set o != Set (λ Hom₁ → o)
when checking that the expression Hom has type Set (λ Hom₁ → o)
@andreasabel
Copy link
Member

Similar: #5478, #2257

@andreasabel
Copy link
Member

After #5483 the error is now:

Set o != Set Hom

@andreasabel
Copy link
Member

Seems like this was fixed by my work on #5478.

@andreasabel andreasabel added this to the 2.6.3 milestone Jul 28, 2021
@andreasabel andreasabel added ux: interaction Issues to do with interactive development (holes, case splitting, etc) meta Metavariables, insertion of implicit arguments, etc records Record declarations, literals, constructors and updates labels Jul 28, 2021
@andreasabel andreasabel self-assigned this Jul 28, 2021
@andreasabel andreasabel modified the milestones: 2.6.3, 2.6.2.1 Aug 18, 2021
andreasabel added a commit that referenced this issue Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta Metavariables, insertion of implicit arguments, etc records Record declarations, literals, constructors and updates ux: interaction Issues to do with interactive development (holes, case splitting, etc)
Projects
None yet
Development

No branches or pull requests

2 participants