summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2014-11-07 17:09:24 +1000
committerJason Zaugg <jzaugg@gmail.com>2014-11-07 17:09:24 +1000
commitecdac378c4d38f3e2c8317b7023819d3d8c2f0c3 (patch)
tree74011212c7a9ec7d89468b8b71d3d23d7ebbde55 /test/files
parent2dfed21a300724ad61e0863f1cd71260a7ccf507 (diff)
parentced3ca8ae1aedd37591d85474d9ee85be5c9b56a (diff)
downloadscala-ecdac378c4d38f3e2c8317b7023819d3d8c2f0c3.tar.gz
scala-ecdac378c4d38f3e2c8317b7023819d3d8c2f0c3.tar.bz2
scala-ecdac378c4d38f3e2c8317b7023819d3d8c2f0c3.zip
Merge pull request #4080 from gourlaysama/wip/t8931-redundant-interfaces-2
SI-8931 make generic signature consistent with interface list in classfiles
Diffstat (limited to 'test/files')
-rw-r--r--test/files/run/t8931.check1
-rw-r--r--test/files/run/t8931.scala15
2 files changed, 16 insertions, 0 deletions
diff --git a/test/files/run/t8931.check b/test/files/run/t8931.check
new file mode 100644
index 0000000000..d08546b5a9
--- /dev/null
+++ b/test/files/run/t8931.check
@@ -0,0 +1 @@
+List(interface B)
diff --git a/test/files/run/t8931.scala b/test/files/run/t8931.scala
new file mode 100644
index 0000000000..11718471bc
--- /dev/null
+++ b/test/files/run/t8931.scala
@@ -0,0 +1,15 @@
+
+trait A
+
+trait B extends A
+
+class C extends A with B
+
+object Test extends App {
+ val c = classOf[C]
+
+ println(c.getGenericInterfaces.toList)
+
+ assert(c.getGenericInterfaces.length == c.getInterfaces.length,
+ s"mismatch between ${c.getGenericInterfaces} and ${c.getInterfaces}")
+}