8000 Extra arguments passed to fixed arity function don't cause error · Issue #1408 · sass/sass · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Extra arguments passed to fixed arity function don't cause error #1408
Closed
@chriseppstein

Description

@chriseppstein

This should be an error.

@mixin foo($a, $b) {
  .foo { #{$a}: $b; }
}
$args: (color, red, extra-arg, another-extra-arg);
@include foo($args...);

It should behave exactly like this:

@mixin foo($a, $b) {
  .foo { #{$a}: $b; }
}
@include foo(color, red, extra-arg, another-extra-arg);

Which raises:

Syntax error: Mixin foo takes 2 arguments but 4 were passed.
        on line 4 of standard input, in `foo'
        from line 4 of standard input
  Use --trace for backtrace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingrequires deprecationBlocked on a deprecation cycle

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0