fix: error position
This commit is contained in:
parent
772e62dfaa
commit
3e77c7cdef
2 changed files with 2 additions and 2 deletions
|
|
@ -216,7 +216,7 @@ def hasBreakContinueReturn (c : Code) : Bool :=
|
|||
| Code.«return» _ _ => true
|
||||
| _ => false
|
||||
|
||||
def mkAuxDeclFor {m} [Monad m] [MonadQuotation m] (e : Syntax) (mkCont : Syntax → m Code) : m Code := withFreshMacroScope do
|
||||
def mkAuxDeclFor {m} [Monad m] [MonadQuotation m] (e : Syntax) (mkCont : Syntax → m Code) : m Code := withRef e <| withFreshMacroScope do
|
||||
let y ← `(y)
|
||||
let yName := y.getId
|
||||
let doElem ← `(doElem| let y ← $e:term)
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ match1.lean:113:0: error: dependent match elimination failed, inaccessible patte
|
|||
.(j + j)
|
||||
constructor expected
|
||||
[false, true, true]
|
||||
match1.lean:124:0: error: invalid match-expression, type of pattern variable 'a' contains metavariables
|
||||
match1.lean:124:7: error: invalid match-expression, type of pattern variable 'a' contains metavariables
|
||||
?m
|
||||
fun (x : ?m × ?m) => ?m x : ?m × ?m → ?m
|
||||
fun (x : Nat × Nat) =>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue