Parametric mixins: parameters don't match error#2646
Conversation
parameters with default values. less#2645
|
Thanks! The only remark (sorry, as my usual :) I was just looking at the code related to this issue myself and noticed that for it to be fixed (in easy way) the error trigger at https://github.com/less/less.js/blob/master/lib/less/tree/mixin-definition.js#L99 has to be eliminated somehow... On the other hand it never harms to keep it "just in case" (so I'm actually only concerning of it to be misleading for further changes). Any ideas? |
|
@seven-phases-max I sometimes put equivalent of "Bug: unreachable code reached please open new issue" into code. Theoretically, it could help with early error detection. Practically, I seen such report in tracker maybe once, but it helped find errors when refactoring a few times. It also helped to remember that branch should not be reachable few months later :) |
…ameters-2645 Parametric mixins: parameters don't match error
Named argument in mixin call counted against requires argument with different name in mixin definition. #2645