A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/agda/agda/issues/7484 below:

Internal error using Mimer in where block · Issue #7484 · agda/agda · GitHub

Attempting to use Mimer (C-c C-a) in the code below produces an internal error

open import Agda.Builtin.Equality

postulate
  A : Set
  eq : (a b : A)  a ≡ b

case_of_ : {A B : Set}  A  (A  B)  B
case x of f = f x

foo : (a b c d : A)  a ≡ d
foo a b c d = bar
  where
  bar : a ≡ d
  bar =
    case eq a b of λ where
      refl 
        case eq b c of λ where
          refl 
            case eq c d of λ where
              refl 
                {!!}

The error is

An internal error has occurred. Please report this as a bug.
Location of the error: __IMPOSSIBLE__, called at src/full\Agda\TypeChecking\Monad\Signature.hs:1163:32 in Agda-2.7.0-9be38c45d5c7c2dd550bc8810b0655b0ecc5d624:Agda.TypeChecking.Monad.Signature

Removing any of the case splits in bar or moving them out of the where block makes the error go away.

The error is present in Agda 2.7.0 and on a recent build of master.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4