Skip to content

Instantly share code, notes, and snippets.

@stedolan
Created May 29, 2022 06:14
Show Gist options
  • Save stedolan/9d03cca5f7411370d415376a8ed5a8ea to your computer and use it in GitHub Desktop.
Save stedolan/9d03cca5f7411370d415376a8ed5a8ea to your computer and use it in GitHub Desktop.
-- Is this a bug in Agda?
-- Try repro with latest agda sometime
module VarBug where
open import Agda.Builtin.Equality
open import Agda.Primitive
data Unit : Set where
tt : Unit
_~>_ : {l : Level} → Unit → Set l → Set l
tt ~> S = S
wrap : {A : Unit} {l : Level} {S : Set l} → S → (A ~> S)
wrap {tt} x = x
wrap-id : {l : Level} {S : Set l} (x : S) → wrap x ≡ x
wrap-id x = refl
variable
l : Level
S : Set l
wrap-id' : (x : S) → wrap x ≡ x
wrap-id' x = refl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment