Skip to content

Expressions don't pass through when they are optional properties #12

@avin-kavish

Description

@avin-kavish
class SomeA {
  foo(expr?: Expression<() => number>) {}

  bar(expr?: Expression<() => number>) {
    this.foo(expr)
  }
}

new SomeA().bar(() => 10)

foo method gets identifier as the expression. Without the question mark, works as expected.

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