Skip to content

Commit ab563e2

Browse files
JKRTadrpo
authored andcommitted
Use Martins solution to the typestability issue for cons
1 parent 0e2f09b commit ab563e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OMCompiler/Compiler/Template/AbsynToJulia.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ match exp
961961
case CONS(__) then
962962
let head_str = dumpExp(head, context)
963963
let rest_str = dumpExp(rest, context)
964-
'<%head_str%> <| <%rest_str%>'
964+
'_cons(<%head_str%>, <%rest_str%>)'
965965
case MATCHEXP(__) then dumpMatchExp(exp)
966966
case LIST(__) then
967967
let list_str = (exps |> e => dumpExp(e, context) ;separator=", ")

0 commit comments

Comments
 (0)