-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Deprecation warnings for old syntax: var x = _
#18821
Deprecation warnings for old syntax: var x = _
#18821
Conversation
3b6b55f
to
a748129
Compare
var
syntax a migration warningvar x = _
This comment was marked as outdated.
This comment was marked as outdated.
a748129
to
0343a75
Compare
In this week's Dotty meeting we decided to do the rewrite as it is implemented here. |
var x = _
var x = _
bb3e2f9
to
cfe81d4
Compare
project/Build.scala
Outdated
@@ -578,7 +578,8 @@ object Build { | |||
lazy val commonDottyCompilerSettings = Seq( | |||
// Note: bench/profiles/projects.yml should be updated accordingly. | |||
Compile / scalacOptions ++= Seq("-Yexplicit-nulls", "-Ysafe-init"), | |||
|
|||
// Use source 3.3 to avoid fatal migration warnings on scalajs-ir | |||
scalacOptions ++= Seq("-source", "3.3"), |
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.
@sjrd where can I add this options to enable them only when compiling the scalajs-ir
?
See https://github.com/lampepfl/dotty/actions/runs/6784134103/job/18439824856
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.
I don't think you can. The scalajs-ir
sources are built as part of scala3-compiler
itself, so they must share their flags.
cfe81d4
to
8d922ff
Compare
8d922ff
to
5c35b48
Compare
252b4b6
to
b80e474
Compare
* In `3.4` we emit the deprecation warning * In `future` we emit we make this syntax an error * Add patch. Not ideal because we need to use the full path of `uninitialized`
b80e474
to
951bbae
Compare
First part #18861
3.4
we emit the deprecation warningfuture
we emit we make this syntax an erroruninitialized