summaryrefslogtreecommitdiff
path: root/test/pending/run/t5427c.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/run/t5427c.scala')
-rw-r--r--test/pending/run/t5427c.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/pending/run/t5427c.scala b/test/pending/run/t5427c.scala
new file mode 100644
index 0000000000..ab41d8b8cd
--- /dev/null
+++ b/test/pending/run/t5427c.scala
@@ -0,0 +1,13 @@
+import scala.reflect.mirror._
+
+class Foo(bar: Int)
+
+object Test extends App {
+ val foo = new Foo(2)
+ val tpe = getType(foo)
+ val bar = tpe.nonPrivateMember(newTermName("bar"))
+ bar match {
+ case NoSymbol => println("no public member")
+ case _ => println("i'm screwed")
+ }
+} \ No newline at end of file