mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-19 01:18:40 +03:00
Attempt 2; only delete values, not refs
This commit is contained in:
parent
5dd7c03a72
commit
fd89b64425
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user