aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t1722
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-05-05 18:34:59 +0200
committerSamuel Gruetter <samuel.gruetter@epfl.ch>2014-05-20 13:38:48 +0200
commit82c4db686d07ae8e91f157f5c8b55a1a76917941 (patch)
tree3024867516bdc571987207296046fe5bcd3ca566 /tests/pos/t1722
parent94ceb9895a539b05fd81c8abe040c276178b5507 (diff)
downloaddotty-82c4db686d07ae8e91f157f5c8b55a1a76917941.tar.gz
dotty-82c4db686d07ae8e91f157f5c8b55a1a76917941.tar.bz2
dotty-82c4db686d07ae8e91f157f5c8b55a1a76917941.zip
Pos tests t17xx - t19xx
Diffstat (limited to 'tests/pos/t1722')
-rwxr-xr-xtests/pos/t1722/Test.scala5
-rwxr-xr-xtests/pos/t1722/Top.scala13
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/pos/t1722/Test.scala b/tests/pos/t1722/Test.scala
new file mode 100755
index 000000000..f236d3fdc
--- /dev/null
+++ b/tests/pos/t1722/Test.scala
@@ -0,0 +1,5 @@
+package t1722
+
+object Test {
+ val x = new AnyRef with C
+}
diff --git a/tests/pos/t1722/Top.scala b/tests/pos/t1722/Top.scala
new file mode 100755
index 000000000..4ac52412a
--- /dev/null
+++ b/tests/pos/t1722/Top.scala
@@ -0,0 +1,13 @@
+package t1722
+
+sealed trait Top
+trait C {
+ private object P extends Top
+}
+/*
+$ scala -e 'new AnyRef with C'
+error: error while loading Top, class file '/private/tmp/bobobo/./Top.class' is broken
+(error reading Scala signature of /private/tmp/bobobo/./Top.class: malformed Scala signature of Top at 185; reference value P of trait C refers to nonexisting symbol.)
+one error found
+Martin: I think this has to do with children property.
+*/