dotless/dotless — Issue #137: mixins with same name but different argument count get imported twice
Author: RedX2501
Created: 2012-02-29 16:29:19+00:00
State: open

I have following mixins

.ellipsis(@width: none) {
width: @width;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.ellipsis(@width_type, @width) {
test: @arguments;
@width_type: @width;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

And following selectors:

table.consumption_entry {
th {
.ellipsis(max-width, 85px);
}
}

What i get:

table.consumption_entry th {
width: max-width;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
test: max-width 85px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

Expected output:

table.consumption_entry th {
test: max-width 85px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

Notice also on the error case the missing "max-width: 85px" eventthough the @arguments clearly has them.
How can the mixin match for only one argument aswell?