Sass recursion mixin

Hi,

I would like to know, if in sass is allowed to write a recursion mixin like this Less example :

.size($val) when ($val < 200 ) {
    width: $val;
    height: $val;
   .size($val + 50px);
}

I’m trying something like this, but i don’t have any output

@mixin test($val) {
  width: $val;
  height: $val;
  @for $i from 1 through 5 {
    @include test($val);
  }
}
.block {
  @include test(5);
}