diff options
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/bug276.check | 5 | ||||
-rw-r--r-- | test/files/neg/bug276.scala | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/files/neg/bug276.check b/test/files/neg/bug276.check new file mode 100644 index 0000000000..edc4ec568f --- /dev/null +++ b/test/files/neg/bug276.check @@ -0,0 +1,5 @@ +bug276.scala:6: error: overriding type Bar in class Foo, which equals (Int, Int); + class Bar cannot be used here - classes and objects can only override abstract types + class Bar + ^ +one error found diff --git a/test/files/neg/bug276.scala b/test/files/neg/bug276.scala new file mode 100644 index 0000000000..e083e21705 --- /dev/null +++ b/test/files/neg/bug276.scala @@ -0,0 +1,7 @@ +class Foo { + type Bar = (Int, Int) +} + +class FooFoo extends Foo { + class Bar +}
\ No newline at end of file |