- 
        Couldn't load subscription status. 
- Fork 3.4k
Closed
Description
Hi,
This is my parametric mixin contain a loop who set a @width variable and provide to ruleset :
.foo (@ruleset) {
    .loop(1);
    .loop (@index) when (@index < 4) {
        @width: 30px * @index;
        .bar {
            @ruleset();
        }
        .loop(@index + 1);
    }
}When I call this mixin twice like that :
.foo({
    width: @width;
});
.foo({
    width: @width;
});I have this output :
.bar {
  width: 30px;
}
.bar {
  width: 60px;
}
.bar {
  width: 90px;
}
.bar {
  width: 30px;
}
.bar {
  width: 30px;
}
.bar {
  width: 30px;
}The first three are correct but the last three stay on 30px width.
Strangely, the following example has no problem :
.first {
    .foo({
        width: @width;
    });
}
.second {
    .foo({
        width: @width;
    });
}An idea ?
Thanks.