File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,15 @@ macro match(ex, lines)
51
51
result = quote
52
52
ex = $ (esc (ex))
53
53
end
54
- body = foldr ((clause, body) -> makeclause (clause... , body),
55
- nothing , clauses (lines))
54
+
55
+ @static if VERSION < v " 0.7.0-"
56
+ body = foldr ((clause, body) -> makeclause (clause... , body),
57
+ nothing , clauses (lines))
58
+ else
59
+ body = foldr ((clause, body) -> makeclause (clause... , body),
60
+ clauses (lines); init= nothing )
61
+ end
62
+
56
63
push! (result. args, body)
57
64
return result
58
65
end
Original file line number Diff line number Diff line change 368
368
flatten (ex) = postwalk (flatten1, ex)
369
369
370
370
function makeif (clauses, els = nothing )
371
- foldr ((c, ex)-> :($ (c[1 ]) ? $ (c[2 ]) : $ ex), els, clauses)
371
+ @static if VERSION < v " 0.7.0-"
372
+ foldr ((c, ex)-> :($ (c[1 ]) ? $ (c[2 ]) : $ ex), els, clauses)
373
+ else
374
+ foldr ((c, ex)-> :($ (c[1 ]) ? $ (c[2 ]) : $ ex), clauses; init= els)
375
+ end
372
376
end
373
377
374
378
unresolve1 (x) = x
You can’t perform that action at this time.
0 commit comments