diff options
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/bug664.check | 9 | ||||
-rwxr-xr-x | test/files/neg/bug664.scala | 7 |
2 files changed, 16 insertions, 0 deletions
diff --git a/test/files/neg/bug664.check b/test/files/neg/bug664.check new file mode 100644 index 0000000000..9c99613374 --- /dev/null +++ b/test/files/neg/bug664.check @@ -0,0 +1,9 @@ +parent types scala.ScalaObjectList(java.lang.Object) +parent types scala.ScalaObjectList(java.lang.Object) +bug664.scala:4 error: type Foo is not a member of test.Test with scala.ScalaObject + trait Foo extends super.Foo { + ^ +bug664.scala:5 error: type Bar is not a member of java.lang.Object with scala.ScalaObject + trait Bar extends super.Bar; + ^ +two errors found diff --git a/test/files/neg/bug664.scala b/test/files/neg/bug664.scala new file mode 100755 index 0000000000..f3b8d06053 --- /dev/null +++ b/test/files/neg/bug664.scala @@ -0,0 +1,7 @@ +package test; +abstract class Test; +trait Test2 extends Test { + trait Foo extends super.Foo { + trait Bar extends super.Bar; + } +} |