Skip to content

references to variables "returned" by a called mixin couldn't be resolved #264

@movalz

Description

@movalz

In newer LESS versrions (since 1.4) it's possible to use a mixin as a function call (see http://lesscss.org/features/#mixins-as-functions-feature): the variables defined inside the mixin body are accessible in a calling mixin.

Example:

.mainMixin() {
.subMixin();
height: @subMixinReturnValue;
}

.subMixin() {
@subMixinReturnValue: 17px;
}

LESS editor can't resolve the reference to "@subMixinReturnValue" in mixin .mainMixin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions