summaryrefslogtreecommitdiff
path: root/test/files/run/reflection-mem-glbs.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/reflection-mem-glbs.scala')
-rw-r--r--test/files/run/reflection-mem-glbs.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/run/reflection-mem-glbs.scala b/test/files/run/reflection-mem-glbs.scala
new file mode 100644
index 0000000000..3f29a914bc
--- /dev/null
+++ b/test/files/run/reflection-mem-glbs.scala
@@ -0,0 +1,13 @@
+import scala.tools.partest.MemoryTest
+
+trait A { type T <: A }
+trait B { type T <: B }
+
+object Test extends MemoryTest {
+ override def maxDelta = 10
+ override def calcsPerIter = 50000
+ override def calc() {
+ import scala.reflect.runtime.universe._
+ glb(List(typeOf[A], typeOf[B]))
+ }
+} \ No newline at end of file