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

Called mixin matches mixin with less parameters #213

Closed
gedrox opened this issue Mar 23, 2012 · 2 comments
Closed

Called mixin matches mixin with less parameters #213

gedrox opened this issue Mar 23, 2012 · 2 comments

Comments

@gedrox
Copy link

gedrox commented Mar 23, 2012

lessphp fails to parse such less file correctly

.test (@one: 0) {
    margin: @one;
}
.test (@one, @two) {
    padding: @one @two;
}
a {
    .test(0, 0);
}

Expected output

a { padding:0 0; }

Actual output

a {
  margin:0;
  padding:0 0;
}

The .test(0, 0) should match only the second mixin, but the first one is matched as well.

@leafo
Copy link
Owner

leafo commented Jun 10, 2012

Can't reproduce, assumed I fixed in an earlier version.

@leafo leafo closed this as completed Jun 10, 2012
@gedrox
Copy link
Author

gedrox commented Jun 11, 2012

Yes, it was fixed in 279c5c8.

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

No branches or pull requests

2 participants