summaryrefslogtreecommitdiff
path: root/test/files/run/t8931.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t8931.scala')
-rw-r--r--test/files/run/t8931.scala15
1 files changed, 15 insertions, 0 deletions
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}")
+}