Permalink
Browse files

[fix] compiler, parser: Added tail_coerce on list sugar

  • Loading branch information...
1 parent cf1818e commit 60a7166e584239f193ada91db051743fa6a05e08 @BourgerieQuentin BourgerieQuentin committed Feb 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 opalang/js_syntax/opa_parser.trx
@@ -940,7 +940,7 @@ list <-
/ lbracket (=list0(Action.action,comma)):l pos:p comma? (Opa_lexer.BAR expr:e {{e}})?:tl rbracket
{{ undecorate (list_expr_of_expr_list_no_coerce ?tl l p) }}
/ lbracket (=list0(expr, comma)):l pos:p comma? (Opa_lexer.BAR expr:e {{e}})?:tl rbracket
- {{ undecorate (list_expr_of_expr_list_no_coerce ?tl l p) }}
+ {{ undecorate (list_expr_of_expr_list_tail_coerce ?tl l p) }}
(* ******************************************************************)

0 comments on commit 60a7166

Please sign in to comment.