fix(mixing): resolves issue #4234#4473
Conversation
* Fix mixin arity issue for mixins that provide a default value for arguments early in the list that caused wrong number of arguments error.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughChangesThe mixin matcher now assigns named and positional arguments by parameter slot, validates arity and required values, and evaluates pattern-like parameters across the full mixin arity. Tests add overloaded mixins with positional and named calls and expected CSS output. Mixin argument matching
Estimated code review effort: 3 (Moderate) | ~20 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
What:
Fix mixin arity issue for mixins that provide a default value for arguments early in the list that caused wrong number of arguments error. Resolves #4234
Why:
This Less:
results in
wrong number of arguments for .mixin (1 for 2)but should be valid.Checklist:
Summary by CodeRabbit
Bug Fixes
Tests