File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
plutus-core/untyped-plutus-core
src/UntypedPlutusCore/Transform Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ processNestedApp (Apply ann body arg) =
3434 if length args >= 3
3535 then
3636 Case ann
37- (Constr ann 0 (processNestedApp <$> args) )
37+ (Constr ann 0 args)
3838 (V. singleton (processNestedApp innerBody))
3939 else Apply ann (processNestedApp body) (processNestedApp arg)
4040 where
@@ -51,4 +51,7 @@ processNestedApp (Constr ann idx ts) =
5151 Constr ann idx (processNestedApp <$> ts)
5252processNestedApp (Case ann t bs) =
5353 Case ann (processNestedApp t) (processNestedApp <$> bs)
54- processNestedApp t = t
54+ processNestedApp (Var ann n) = Var ann n
55+ processNestedApp (Constant ann v) = Constant ann v
56+ processNestedApp (Builtin ann fun) = Builtin ann fun
57+ processNestedApp (Error ann) = Error ann
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ test_names = testGroup "names"
8181 (evalSimplifierT . caseReduce)
8282 , T. test_scopingGood " case-apply"
8383 (genTerm @ DefaultFun )
84- T. BindingRemovalOk
84+ T. BindingRemovalNotOk
8585 T. PrerenameYes
8686 (evalSimplifierT . caseApply)
8787 , -- CSE creates entirely new names, which isn't supported by the scoping check machinery.
You can’t perform that action at this time.
0 commit comments