-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport "Check deprecation of inline methods" to LTS (#21004)
Backports #19914 to the LTS branch. PR submitted by the release tooling. [skip ci]
- Loading branch information
Showing
6 changed files
with
75 additions
and
48 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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
-- Deprecation Warning: tests/warn/i19913.scala:13:25 ------------------------------------------------------------------ | ||
13 | Deprecated.inlineMethod() // warn | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| method inlineMethod in object Deprecated is deprecated: test | ||
-- Deprecation Warning: tests/warn/i19913.scala:12:13 ------------------------------------------------------------------ | ||
12 | Deprecated.method() // warn | ||
| ^^^^^^^^^^^^^^^^^ | ||
| method method in object Deprecated is deprecated: test |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//> using options -deprecation | ||
|
||
object Deprecated: | ||
|
||
@deprecated("test") | ||
def method() = ??? | ||
|
||
@deprecated("test") | ||
inline def inlineMethod() = ??? | ||
|
||
object Test: | ||
Deprecated.method() // warn | ||
Deprecated.inlineMethod() // warn |