We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e11ef3e commit c6a2114Copy full SHA for c6a2114
src/Lean/Compiler/LCNF/Simp/DiscrM.lean
@@ -61,8 +61,7 @@ def findCtor? (fvarId : FVarId) : DiscrM (Option CtorInfo) := do
61
| some { value := .const declName _ args, .. } =>
62
let some (.ctorInfo val) := (← getEnv).find? declName | return none
63
return some <| .ctor val args
64
- | some _ => return none
65
- | none => return (← read).discrCtorMap.get? fvarId
+ | _ => return (← read).discrCtorMap.get? fvarId
66
67
def findCtorName? (fvarId : FVarId) : DiscrM (Option Name) := do
68
let some ctorInfo ← findCtor? fvarId | return none
0 commit comments