add scope test for inner variable redeclarations

This commit is contained in:
Connor Skees 2020-07-01 07:03:43 -04:00
parent 6ea036581b
commit 84f52d2ef4

View File

@ -40,3 +40,24 @@ test!(
}", }",
"a {\n color: false;\n color: false;\n}\n" "a {\n color: false;\n color: false;\n}\n"
); );
test!(
variable_redeclarations_propagate_to_outer_scopes,
"
a {
$a: red;
b {
$a: blue;
c {
d {
$a: orange;
color: $a;
}
color: $a;
}
color: $a;
}
color: $a;
}
",
"a {\n color: orange;\n}\na b {\n color: orange;\n}\na b c {\n color: orange;\n}\na b c d {\n color: orange;\n}\n"
);