opal/opal

Incompatibility in multiple assignment

开放

#1,703 创建于 2017年9月30日

 (1 条评论) (0 个反应) (0 位负责人)Ruby (382 个派生)batch import
bughelp wantedlanguagev1.2

仓库指标

星标
 (4,766 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

I found this code behaves differently between Opal (git master) vs. Ruby (2.4.2).

((x, y)) = [[1,2]]

Here is the results:

$ ./bin/opal -e '((x, y)) = [[1,2]]; p(["x", x, "y", y])'
["x", [1, 2], "y", nil]
$ ruby -e '((x, y)) = [[1,2]]; p(["x", x, "y", y])'
["x", 1, "y", 2]

贡献者指南