forked from agda/agda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ fix agda#5700 ] Give proper scope to metas created by reflection
- Loading branch information
1 parent
27b34ec
commit 9a85249
Showing
4 changed files
with
31 additions
and
4 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
open import Agda.Builtin.List | ||
open import Agda.Builtin.Nat | ||
open import Agda.Builtin.Unit | ||
open import Agda.Builtin.Reflection | ||
|
||
pattern vArg x = arg (arg-info visible (modality relevant quantity-ω)) x | ||
|
||
macro | ||
macaroo : Term → TC ⊤ | ||
macaroo hole = unify hole (con (quote suc) (vArg unknown ∷ [])) | ||
|
||
test : Nat | ||
test = macaroo |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
top_command (cmd_load currentFile []) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
(agda2-status-action "") | ||
(agda2-info-action "*Type-checking*" "" nil) | ||
(agda2-highlight-clear) | ||
(agda2-status-action "") | ||
(agda2-info-action "*All Goals*" "_n_7 : Nat [ at Issue5700.agda:13,8-15 ] " nil) | ||
((last . 1) . (agda2-goals-action '())) |