summaryrefslogtreecommitdiff
path: root/test/files/run/t5256d.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t5256d.scala')
-rw-r--r--test/files/run/t5256d.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/t5256d.scala b/test/files/run/t5256d.scala
new file mode 100644
index 0000000000..86404a9b63
--- /dev/null
+++ b/test/files/run/t5256d.scala
@@ -0,0 +1,10 @@
+import scala.tools.partest.ReplTest
+
+object Test extends ReplTest {
+ def code = """
+import scala.reflect.mirror._
+class A
+val c = classToType(classOf[A])
+println(c.typeSymbol == classToSymbol(classOf[A]))
+ """
+}