Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unintentional "Variable Definition Interpolation" with "Property Interpolation" syntax. #2133

Closed
seven-phases-max opened this issue Aug 1, 2014 · 0 comments · Fixed by #2173

Comments

@seven-phases-max
Copy link
Member

As revealed in #2132, Property Interpolation syntax can be used to define variables too (if the interpolation statement is wrapped into a mixin):

.mixin() {
    @name: ~"@whatever";
    @{name}: red;
}

div {
   .mixin();
    color: @whatever;
}

compiles to

div {
  color: red;
}

The problem is that this was not really intended to work at all so probably this should somehow throw a error, at least by now. We did not consider this "feature" at all and all potential side-effects and conflicts with other features (scope, lazy-loading, LDW) it may have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant