Created
January 30, 2016 18:52
-
-
Save liamoc/4e7981de3c406dc90579 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module bugreport where | |
open import Data.Nat | |
open import Data.Bool hiding (_≟_) | |
open import Relation.Nullary | |
⸤_⸥ : {A : Set} → Dec A → Bool | |
⸤ yes _ ⸥ = true | |
⸤ no _ ⸥ = false | |
record State : Set where | |
field var₁ : Bool | |
field var₂ : ℕ | |
open State ⦃ ... ⦄ | |
postulate Program : Set → Set | |
postulate guard : ∀{S : Set} → (S → Bool) → Program S | |
test₃ : Program State | |
test₃ = guard (λ σ → var₁) -- works | |
test₂ : Program State | |
test₂ = guard {State} (λ σ → ⸤ var₂ ≟ 0 ⸥) -- works | |
test₁ : Program State | |
test₁ = guard (λ σ → ⸤ var₂ ≟ 0 ⸥) -- doesn't work, used to work in agda 2.4 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment