Skip to content

Default parameters in interop setters are allowed #1707

@gzm0

Description

@gzm0

The two following definitions compile, but probably shouldn't:

trait JS extends js.Object {
  def a_=(x: Int = 1): Unit = js.native
}

class A {
  @JSExport
  def a_=(x: Int = 1): Unit = ???
}

Metadata

Metadata

Assignees

Labels

bugConfirmed bug. Needs to be fixed.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions