Skip to content

jsii: it is possible to define a method/ctor with non-optional after an optional #301

Closed

Description

@eladb

Probably a typescript bug, but it is now possible to define something like this:

function foo(arg1 = 'hello', arg2: string) {
}

This means that arg1 is optional and arg2 is required, which doesn't work.

Activity

  1. added a commit that references this issue on Nov 8, 2018
    2888b56
  2. added a commit that references this issue on Nov 8, 2018
    094a215
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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