79412155

Date: 2025-02-04 15:13:21
Score: 0.5
Natty:
Report link

So far, the best shot is to declare variables within the mixin and use them outside:

.test-mixin(@varname)
{
    test-prop: @varname; // Do something.

    @res-1: 7;
    @res-2: 8;
}

:root
{
    @test-var: 5;
    @result: .test-mixin(@test-var);
    --test-1: @result[@res-1]; // 7
    --test-2: @result[@res-2]; // 8
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Shtole