add scope test for local variables with functions

This commit is contained in:
Connor Skees 2020-06-27 04:26:13 -04:00
parent 369feb5c40
commit f582439744

View File

@ -130,3 +130,16 @@ error!(
denies_function_declaration_with_reserved_name, denies_function_declaration_with_reserved_name,
"@function url() {}", "Error: Invalid function name." "@function url() {}", "Error: Invalid function name."
); );
test!(
function_finds_outer_local_variable,
"a {
$a: red;
@function foo() {
@return $a;
}
color: foo();
}",
"a {\n color: red;\n}\n"
);