Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

varargs with zero arguments #1130

Closed
chriseppstein opened this issue Apr 24, 2015 · 2 comments · Fixed by #1131
Closed

varargs with zero arguments #1130

chriseppstein opened this issue Apr 24, 2015 · 2 comments · Fixed by #1131

Comments

@chriseppstein
Copy link
Contributor

This code should compile:

@function foo($args...) {
  @return bar($args...);
}

@function bar() {
 @return "hi";
}

.foo {
  result: foo();
}

to:

.foo {
  result: "hi";
}

But instead I get the following error even in the latest libsass code:

function bar only takes 0 arguments; given 1 on line 2 at column 11
@mgreter mgreter self-assigned this Apr 24, 2015
@mgreter mgreter added this to the 3.2 milestone Apr 24, 2015
mgreter added a commit to mgreter/libsass that referenced this issue Apr 24, 2015
@chriseppstein
Copy link
Contributor Author

damn you're fast.

@xzyfer
Copy link
Contributor

xzyfer commented Apr 25, 2015

Specs added sass/sass-spec#343

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants