From 84f52d2ef4bc16e231ff3b2bd16f3be8f394f3a7 Mon Sep 17 00:00:00 2001 From: Connor Skees Date: Wed, 1 Jul 2020 07:03:43 -0400 Subject: [PATCH] add scope test for inner variable redeclarations --- tests/scope.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/scope.rs b/tests/scope.rs index 3b5fe14..f9e58b1 100644 --- a/tests/scope.rs +++ b/tests/scope.rs @@ -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" +);