-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setters in raw JS type with varargs are allowed #1706
Comments
@sjrd, please confirm this. |
It should definitely not compile. The compiler wouldn't know what to do with a call site |
I'm pretty sure it will set the Shall I make this a hard fail or should we make it warn? |
Hard fail. There's no reason not to. |
Ok |
gzm0
added a commit
to gzm0/scala-js
that referenced
this issue
Jun 12, 2015
This commit enforces the following on interop setters (facades and exported). An interop setter is any method ending in `_=`. * Return Unit * Only a single parameter (1) * No default parameter (1,2) * No vararg parameter (1) (1) Breaking change for facade types. (2) Only a warning for exports due to compatibility. Fixes scala-js#1704, scala-js#1706, scala-js#1707.
gzm0
added a commit
to gzm0/scala-js
that referenced
this issue
Jun 12, 2015
This commit enforces the following on interop setters (facades and exported). An interop setter is any method ending in `_=`. * Return Unit * Only a single parameter (1) * No default parameter (1,2) * No vararg parameter (1) (1) Breaking change for facade types. (2) Only a warning for exports due to compatibility. Fixes scala-js#1704, scala-js#1706, scala-js#1707.
Fixed in 7cacc30 |
nicolasstucki
pushed a commit
to nicolasstucki/scala-js
that referenced
this issue
Jun 15, 2015
This commit enforces the following on interop setters (facades and exported). An interop setter is any method ending in `_=`. * Return Unit * Only a single parameter (1) * No default parameter (1,2) * No vararg parameter (1) (1) Breaking change for facade types. (2) Only a warning for exports due to compatibility. Fixes scala-js#1704, scala-js#1706, scala-js#1707.
nicolasstucki
pushed a commit
to nicolasstucki/scala-js
that referenced
this issue
Jun 17, 2015
This commit enforces the following on interop setters (facades and exported). An interop setter is any method ending in `_=`. * Return Unit * Only a single parameter (1) * No default parameter (1,2) * No vararg parameter (1) (1) Breaking change for facade types. (2) Only a warning for exports due to compatibility. Fixes scala-js#1704, scala-js#1706, scala-js#1707.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following compiles but probably shouldn't:
The
@JSExport
equivalent does fail:The text was updated successfully, but these errors were encountered: