summaryrefslogtreecommitdiff
path: root/test/files/neg/t2296a/S.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t2296a/S.scala')
-rw-r--r--test/files/neg/t2296a/S.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/files/neg/t2296a/S.scala b/test/files/neg/t2296a/S.scala
new file mode 100644
index 0000000000..532d038a42
--- /dev/null
+++ b/test/files/neg/t2296a/S.scala
@@ -0,0 +1,18 @@
+package s {
+ import j.J
+
+ trait S extends J {
+ def bar() {
+ foo()
+ }
+ }
+
+ class SC extends J with S
+}
+
+object Test {
+ def main(args : Array[String]) {
+ (new s.SC).bar()
+ (new s.S { }).bar()
+ }
+} \ No newline at end of file