forked from scala/scala3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
private[this]
deprecation warning and documentation
- Loading branch information
1 parent
c15cc9c
commit 18795e4
Showing
6 changed files
with
35 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
tests/neg-scalajs/js-non-native-members-qualified-private.check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
-- Error: tests/neg/private-this-3.4.scala:6:16 ------------------------------------------------------------------------ | ||
6 | private[this] def foo: Int = ??? // error: migration warning | ||
| ^ | ||
| The [this] qualifier will be deprecated in the future; it should be dropped. | ||
| Ignoring [this] qualifier. | ||
| This syntax will be deprecated in the future; it should be dropped. | ||
| See: https://docs.scala-lang.org/scala3/reference/dropped-features/this-qualifier.html | ||
| This construct can be rewritten automatically under -rewrite -source 3.4-migration. | ||
-- Error: tests/neg/private-this-3.4.scala:7:18 ------------------------------------------------------------------------ | ||
7 | protected[this] def bar: Int = ??? // error: migration warning | ||
| ^ | ||
| The [this] qualifier will be deprecated in the future; it should be dropped. | ||
| Ignoring [this] qualifier. | ||
| This syntax will be deprecated in the future; it should be dropped. | ||
| See: https://docs.scala-lang.org/scala3/reference/dropped-features/this-qualifier.html | ||
| This construct can be rewritten automatically under -rewrite -source 3.4-migration. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters