kaj/rsass

Bug: Got multiple bindings ... but non-list value map-merge

glebm opened this issue · 1 comments

glebm commented

Input

$map: () !default;
$map: map-merge((a: 1, b: 2),
  $map
);

@each $k, $v in $map {
  @debug "#{$k} #{$v}";
}

Error:

thread 'main' panicked at 'Got multiple bindings ["k", "v"], but non-list value map-merge', src/variablescope.rs:47:13

It works if I change:

$map: map-merge((a: 1, b: 2),
  $map
);

to:

$map: map-merge((a: 1, b: 2),
  $map);
kaj commented

Hm, sounds like the call isn't recognized as a call in the case with a newline after the second argument. I'll look into it (unless you're faster).