Skip to content

Internal error when interactively checking expression with new meta-variables #7624

@jashug

Description

@jashug

In emacs with the Agda mode, pressing C-u C-c C-; in the hole (in the definition of baz) gives the error

An internal error has occurred. Please report this as a bug.
Location of the error: __IMPOSSIBLE_VERBOSE__, called at src/full/Agda/TypeChecking/Reduce.hs:224:18 in Agda-2.7.0.1-6273180bd9b53a251e88a8912e7909d128fe0195585b527f0efc07f60cb86e79:Agda.TypeChecking.Reduce

Agda file below, no flags.

data _≡_ {ℓ} {X : Set ℓ} (x : X) : X  Setwhere
  refl : x ≡ x

record Foo {ℓ} (X : Set ℓ) : Setwhere
  field
    foo : X
open Foo {{...}}

instance
  bar :  {ℓ} {X : Set ℓ} {x : X}  Foo (x ≡ x)
  bar .foo = refl

baz :  {X : Set}  X ≡ X
baz = {! foo {{bar}} !}

Agda version 2.7.0.1, recently installed with cabal.

Metadata

Metadata

Assignees

Labels

internal-errorConcerning internal errors of AgdametaMetavariables, insertion of implicit arguments, etcregression in 2.6.1Regression that first appeared in Agda 2.6.1ux: interactionIssues to do with interactive development (holes, case splitting, etc)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions