cloudhead/less.js — Issue #632: Calling Mixins with and without parentheses result in different behaviour with @argument
Author: SpaXe
Created: 2012-02-14 00:56:10+00:00
State: open

Two test cases should be sufficient to show you what I mean.

#### Test 1:
.mixin (@a: 1px, @b: 2px) {
margin: @arguments;
}
body {
.mixin;
}
#### Output:
>> lessc test.css
body {
margin: ;
}

#### Test 2:
.mixin (@a: 1px, @b: 2px) {
margin: @arguments;
}
body {
.mixin();
}
#### Output:
>> lessc test.css
body {
margin: 1px 2px;
}

I would have expected both outputs to be the same.

I'm on
lessc --version
lessc 1.2.1 (LESS Compiler) [JavaScript]