add scope test for inner variable redeclarations
This commit is contained in:
parent
6ea036581b
commit
84f52d2ef4
@ -40,3 +40,24 @@ test!(
|
||||
}",
|
||||
"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"
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user