chore: two comments about bad pp.analyze behavior
This commit is contained in:
parent
9744b51c1b
commit
ce64629d63
2 changed files with 3 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ def f : (xs : List Nat) → Nat → xs ≠ [] → Nat
|
|||
|
||||
set_option pp.inaccessibleNames true in
|
||||
def f' : (xs : List Nat) → Nat → xs ≠ [] → Nat
|
||||
| [], _, _ => _
|
||||
| [], _, _ => _ -- TODO: figure out why hyp `Ne (α := List Nat) x✝² []` needs α
|
||||
| [a,b], _, _ => _
|
||||
| _, _, _ => _
|
||||
|
||||
|
|
|
|||
|
|
@ -23,6 +23,8 @@ syntax (name := mySingleton) "[" term "]" : term
|
|||
macro_rules (kind := mySingleton)
|
||||
| `([$a]) => `(2 * $a)
|
||||
|
||||
-- TODO: "ambiguous, possible interpretations" error messages print with
|
||||
-- a lot of detail since most mvars have not been resolved yet
|
||||
#check [1] -- ambiguous it can be `mySingleton` or the singleton list
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue