$primary: red;

.foo {
  $secondary:green;
  color : red;
}
$primary: red;

%bar {
  background: $primary;
}

.foo {
  @extend %bar;
  $secondary:green;
  color : red;
}

.baz {
  @extend .foo%bar;
}

.qux {
  @extend .foo;
}
Test for placeholder in extend
Test for placeholder in extend
