Attempt 2; only delete values, not refs

This commit is contained in:
Lucas Leblow 2020-06-13 18:05:37 -06:00
parent 5dd7c03a72
commit fd89b64425

View File

@ -371,6 +371,8 @@ toC toCMode (Binder meta root) = emitterSrc (execState (visit startingIndent roo
when isNotVoid $
appendToSrc (addIndent indent' ++ retVar ++ " = " ++ caseExprRetVal ++ ";\n")
let Just caseLhsInfo' = caseLhsInfo
when (matchMode == MatchValue)
(delete indent' caseLhsInfo')
appendToSrc (addIndent indent ++ "}\n")
in do exprVar <- visit indent expr