diff options
Diffstat (limited to 'tests/untried/neg/t2213.check')
-rw-r--r-- | tests/untried/neg/t2213.check | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/untried/neg/t2213.check b/tests/untried/neg/t2213.check new file mode 100644 index 000000000..9fb3bb2eb --- /dev/null +++ b/tests/untried/neg/t2213.check @@ -0,0 +1,25 @@ +t2213.scala:9: error: class C needs to be abstract, since: +it has 4 unimplemented members. +/** As seen from class C, the missing signatures are as follows. + * For convenience, these are usable as stub implementations. + */ + def f: Int = ??? + def g: Int = ??? + val x: Int = ??? + val y: Int = ??? + +class C extends A {} + ^ +t2213.scala:11: error: object creation impossible, since: +it has 4 unimplemented members. +/** As seen from object Q, the missing signatures are as follows. + * For convenience, these are usable as stub implementations. + */ + def f: Int = ??? + def g: Int = ??? + val x: Int = ??? + val y: Int = ??? + +object Q extends A { } + ^ +two errors found |