-
Notifications
You must be signed in to change notification settings - Fork 384
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
Fix #2442: Deprecate @JSExportNamed. #2509
Conversation
| ^ | ||
|newSource1.scala:4: warning: class JSExportNamed in package annotation is deprecated: Use @JSExport with an explicit option bag instead. See the Scaladoc for more details. | ||
| @JSExportNamed | ||
| ^ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The duplicate warning is due to a weird interaction with PreJSExports
, which creates an export bridge with the same annotation. Apparently deprecation warnings are handled later in the pipeline, and so the deprecation is reported twice.
TBH, I don't care ^^
Review by @nicolasstucki |
LGTM |
Refer to this link for build results (access rights to CI server needed): https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/3262/ |
You got some new fatal warnings |
1749acb
to
58050c7
Compare
Updated. |
""" | ||
@JSExportAll | ||
class A { | ||
@JSExportNamed("apply") | ||
@JSExport("foo") | ||
def apply(): Int = 1 | ||
} | ||
""" hasWarns | ||
""" containsWarns | ||
""" | ||
|newSource1.scala:7: warning: Member cannot be exported to function application. It is available under the name apply instead. Add @JSExport("apply") to silence this warning. This will be enforced in 1.0. | ||
| def apply(): Int = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part changed since the last review.
Refer to this link for build results (access rights to CI server needed): https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/3265/ |
LGTM |
No description provided.