Skip to content

Commit

Permalink
chore: note on previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Kha committed Jun 10, 2021
1 parent e4bf597 commit cc2f483
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Lean/Elab/Quotation.lean
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,10 @@ private partial def getHeadInfo (alt : Alt) : TermElabM HeadInfo :=
pure {
check :=
if quoted.isIdent then
-- identifiers only match identical identifiers
-- NOTE: We could make this case more precise by including the matched identifier,
-- if any, in the `shape` constructor, but matching on literal identifiers is quite
-- rare.
other quoted
else
shape kind argPats.size,
Expand All @@ -398,7 +402,7 @@ private partial def getHeadInfo (alt : Alt) : TermElabM HeadInfo :=
else
uncovered
| shape k' sz =>
if k' == kind && sz == argPats.size && kind != `ident then
if k' == kind && sz == argPats.size then
covered (fun (pats, rhs) => (argPats.toList ++ pats, rhs)) (exhaustive := true)
else
uncovered
Expand Down

0 comments on commit cc2f483

Please sign in to comment.