-
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.
We must check these constraint just before inlining as later on there on the call might completely disappear. We do the same as we did for experimental definition checks. Fixes #19913
- Loading branch information
1 parent
162b543
commit f2ba6f4
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 |