-
Notifications
You must be signed in to change notification settings - Fork 468
Closed
Description
Sass should throw an error if one tries to create functions called or
, and
and not
. This is an issue I opened in Sass repo a while ago: sass/sass#1265.
Test:
@function and() {
@return "and";
}
@function or() {
@return "or";
}
@function not() {
@return "not";
}
test {
not: not();
or: or();
and: and();
}
Expect:
Invalid function name "and".
Result:
test {
not: "not";
or: "or";
and: "and"; }
Ref: http://sass-compatibility.github.io/#reserved_function_names