Skip to content

Map with quoted keys as variable arguments #721

@KittyGiraudel

Description

@KittyGiraudel

Test:

// Test 1
@mixin test($a, $b) {
  content: $a $b;
}

test {
  @include test(("a": 1, "b": 2)...);
}
// Test 2
@function test($a, $b) {
  @return $a $b;
}

test {
  content: test(("a": 1, "b": 2)...);
}

Expected result for both tests:

test {
  content: 1 2;
}

Results:

stdin:8: mixin test has no parameter named $"a"
stdin:8: function test has no parameter named $"a"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions