-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Open
Labels
Description
To reproduce:
The Less preview doesn't want me to use the correct share link so here's the Less for it:
@foo: 1;
@bar: a;
@foo-is-one: boolean(@foo = 1);
@bar-is-a: boolean(@bar = a);
@is-qar: boolean(@foo-is-one = @bar-is-a);
/* @is-baz: boolean((@foo = 1) = (@bar = a)); */
:root {
--qar: @is-qar;
/* --baz: @is-baz; */
}Current behavior:
Commenting in the @is-baz variable on line 6 (and line 10 to use it in an expression) causes the error variable @is-baz is undefined. As you can see, the expression @is-baz contains is the same is the (working) @is-qar expression, but inlines the @foo-is-one and @bar-is-a checks.
Expected behavior:
There shouldn't be any undefined variable, because the variable is defined — I should be allowed to inline boolean expressions / logical comparisons like so.
Environment information:
lessversion: latestnodejsversion: n/aoperating system: n/a
Reactions are currently unavailable