Skip to content

super.merge on a getter generates a function call #211

@esb

Description

@esb

The merge of super on a getter function generates the wrong call.

class Test < Parent
  def self.options
    super.merge(opt1: 1)
  end
end

This generates

static get options() {
    return {
      ...Parent.options(),
      opt1: 1
    }
  };

This is wrong. The super should follow the args of the definition instead.

static get options() {
    return {
      ...Parent.options,
      opt1: 1
    }
  };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions