Skip to content

keywords($args) does not default to empty map #672

@jakob-e

Description

@jakob-e

When passing non-keyword-arguments keyword function trows
Error: basic_string::basic_string rather than creating an empty map

@mixin mixin($arglist...){
    $map: keywords($arglist);
}

.test {
    // As expected 
    // $map: (width: 200px, height: 100px);  
   @include mixin( $width: 200px, $height: 100px);

   // As expected 
   // $map: ();
   @include mixin( );

    // Throws: "Error: basic_string::basic_string"
    // Expected $map: ();  
   @include mixin( not-keyword-format );
}







Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions