diff options
Diffstat (limited to 'test/files/neg/t1163.check')
-rw-r--r-- | test/files/neg/t1163.check | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/t1163.check b/test/files/neg/t1163.check new file mode 100644 index 0000000000..c96ec732a5 --- /dev/null +++ b/test/files/neg/t1163.check @@ -0,0 +1,7 @@ +t1163.scala:2: error: error overriding method foo in trait Sub of type => Sub; + method foo in trait Super of type => Super has incompatible type => Super; + (Note that method foo in trait Sub of type => Sub is abstract, + and is therefore overridden by concrete method foo in trait Super of type => Super) +trait Sub extends Super { override def foo: Sub } + ^ +one error found |