You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Scoping of mixin unlocked from namespaced mixin does not work properly #2039
SyntaxError: variable @variable is undefined in test.less on line 8, column 1:
7 }
8 #namespace > .unlocker();
9
expected output:
#mixin{property: in-caller;}
2.) I defined a detached ruleset inside a namespaced mixin. The ruleset is unable to see variables defined in its outer namespace (the #2038 is the same except with detached rulesets).
If I'm not mistaken the (1) error is actually expected since it occurs when the .mixin class is exposed to the global scope where no @variable is defined. I.e. the error is actually in:
1.) Mixin should see callers variables. I can not find related discussion now, but I'm sure about it. I will try to find it tomorrow. That being said, this issue has nothing to do with unlocking.
It seems like .mixin { and .mixin() { behave differently. This:
Activity
seven-phases-max commentedon May 31, 2014
If I'm not mistaken the (1) error is actually expected since it occurs when the
.mixinclass is exposed to the global scope where no@variableis defined. I.e. the error is actually in:seven-phases-max commentedon May 31, 2014
And (2) is just one more example for #1316.
SomMeri commentedon May 31, 2014
EDIT: ignore this comment, contains mistakes.
2.) You are right. I forgot about that one.
1.) Mixin should see callers variables. I can not find related discussion now, but I'm sure about it. I will try to find it tomorrow. That being said, this issue has nothing to do with unlocking.
It seems like
.mixin {and.mixin() {behave differently. This:compiles into:
On the other hand, this fails:
Error:
Do you agree? If yes I will close this issue and open new one for
.mixin {vs.mixin() {difference with better title (if it does not exist).SomMeri commentedon May 31, 2014
Blah, ignore previous comment. Closing issue because 1.) works as expected and 2.) is duplicated.