-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Previously, it was silently dropped.
- Loading branch information
1 parent
e140b9c
commit 03c15b1
Showing
3 changed files
with
40 additions
and
0 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,23 @@ | ||
-- Andreas, 2024-20-22, issue #6783 | ||
-- Error for @tactic in lambda, rather than silently dropping it. | ||
|
||
-- {-# OPTIONS -v tc.term.lambda:30 #-} | ||
|
||
open import Agda.Builtin.Reflection | ||
open import Agda.Builtin.Unit | ||
open import Agda.Builtin.Nat | ||
open import Agda.Builtin.Equality | ||
|
||
super-tac : Term → TC ⊤ | ||
super-tac hole = unify hole (lit (nat 101)) | ||
|
||
bar = λ {@(tactic super-tac) n : Nat} → n + n | ||
|
||
_ : bar ≡ 202 | ||
_ = refl | ||
|
||
-- Expected error: | ||
|
||
-- The @tactic attribute is not allowed here | ||
-- when checking that the expression | ||
-- λ {@(tactic super-tac) n : Nat} → n + n has type _4 |
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,4 @@ | ||
Issue6783.agda:14,11-29 | ||
The @tactic attribute is not allowed here | ||
when checking that the expression | ||
λ {@(tactic super-tac) n : Nat} → n + n has type _4 |