-
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.
Add support for @deprecatedInheritance
- Loading branch information
1 parent
55c2002
commit a67c70a
Showing
4 changed files
with
48 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
-- Deprecation Warning: tests/warn/i19002.scala:5:20 ------------------------------------------------------------------- | ||
5 |class TBar1 extends TFoo // warn | ||
| ^^^^ | ||
| inheritance from trait TFoo is deprecated (since: FooLib 12.0): this class will be made final | ||
-- Deprecation Warning: tests/warn/i19002.scala:6:20 ------------------------------------------------------------------- | ||
6 |trait TBar2 extends TFoo // warn | ||
| ^^^^ | ||
| inheritance from trait TFoo is deprecated (since: FooLib 12.0): this class will be made final | ||
-- Deprecation Warning: tests/warn/i19002.scala:10:20 ------------------------------------------------------------------ | ||
10 |class CBar1 extends CFoo // warn | ||
| ^^^^ | ||
| inheritance from class CFoo is deprecated (since: FooLib 11.0): this class will be made final | ||
-- Deprecation Warning: tests/warn/i19002.scala:14:20 ------------------------------------------------------------------ | ||
14 |class ABar1 extends AFoo // warn | ||
| ^^^^ | ||
| inheritance from class AFoo is deprecated (since: FooLib 10.0): this class will be made final | ||
-- Deprecation Warning: tests/warn/i19002.scala:15:20 ------------------------------------------------------------------ | ||
15 |trait ABar2 extends AFoo // warn | ||
| ^^^^ | ||
| inheritance from class AFoo is deprecated (since: FooLib 10.0): this class will be made final |
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,15 @@ | ||
//> using options -deprecation | ||
|
||
@deprecatedInheritance("this class will be made final", "FooLib 12.0") | ||
trait TFoo | ||
class TBar1 extends TFoo // warn | ||
trait TBar2 extends TFoo // warn | ||
|
||
@deprecatedInheritance("this class will be made final", "FooLib 11.0") | ||
class CFoo | ||
class CBar1 extends CFoo // warn | ||
|
||
@deprecatedInheritance("this class will be made final", "FooLib 10.0") | ||
abstract class AFoo | ||
class ABar1 extends AFoo // warn | ||
trait ABar2 extends AFoo // warn |