fix: only print named patterns inside patterns
This commit is contained in:
parent
d2ff2de4f6
commit
280a3db653
2 changed files with 2 additions and 3 deletions
|
|
@ -671,6 +671,7 @@ where
|
|||
|
||||
@[builtinDelab app.namedPattern]
|
||||
def delabNamedPattern : Delab := do
|
||||
guard (← read).inPattern
|
||||
guard $ (← getExpr).getAppNumArgs == 3
|
||||
let x ← withAppFn $ withAppArg delab
|
||||
let p ← withAppArg delab
|
||||
|
|
|
|||
|
|
@ -227,6 +227,7 @@ def fooReadGetModify : ReaderT Unit (StateT Unit IO) Unit := do
|
|||
#testDelabN MonadLift.noConfusionType
|
||||
#testDelabN MonadExcept.noConfusion
|
||||
#testDelabN MonadFinally.noConfusion
|
||||
#testDelabN Lean.Elab.InfoTree.goalsAt?.match_1
|
||||
|
||||
-- TODO: this test is broken because of the inability to solve structural max constraints
|
||||
-- (See https://github.com/leanprover/lean4/issues/590)
|
||||
|
|
@ -237,6 +238,3 @@ def fooReadGetModify : ReaderT Unit (StateT Unit IO) Unit := do
|
|||
-- TODO: this is broken because it is currently inaccessible names
|
||||
-- #testDelabN Std.ShareCommon.ObjectMap.find?
|
||||
-- #testDelabN Std.ShareCommon.ObjectMap.insert
|
||||
|
||||
-- TODO: these fail because we are not disable named patterns when not using `match` syntax
|
||||
-- #testDelabN Lean.Elab.InfoTree.goalsAt?.match_1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue