diff options
Diffstat (limited to 'test/files/neg/t6162-inheritance.check')
-rw-r--r-- | test/files/neg/t6162-inheritance.check | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/files/neg/t6162-inheritance.check b/test/files/neg/t6162-inheritance.check new file mode 100644 index 0000000000..e98fa79eb7 --- /dev/null +++ b/test/files/neg/t6162-inheritance.check @@ -0,0 +1,18 @@ +t6162-inheritance.scala:6: warning: inheritance from class Foo in package t6126 is deprecated: `Foo` will be made final in a future version. +class SubFoo extends Foo + ^ +t6162-inheritance.scala:11: warning: inheritance from trait T in package t6126 is deprecated +object SubT extends T + ^ +t6162-inheritance.scala:17: warning: inheritance from trait S in package t6126 is deprecated + new S { + ^ +t6162-inheritance.scala:6: warning: inheritance from class Foo in package t6126 is deprecated: `Foo` will be made final in a future version. +class SubFoo extends Foo + ^ +t6162-inheritance.scala:11: warning: inheritance from trait T in package t6126 is deprecated +object SubT extends T + ^ +error: No warnings can be incurred under -Xfatal-warnings. +5 warnings found +one error found |