summaryrefslogtreecommitdiff
path: root/test/pending/run/t5427c.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-01-31 19:23:00 +0100
committerEugene Burmako <xeno.by@gmail.com>2012-02-01 09:36:02 +0100
commit41ce53e3e643e85a022393e54c952ec4dee2cb57 (patch)
treecbd425144f2126b4aeaeee9cb9597495ee2fa163 /test/pending/run/t5427c.scala
parent263aa2ead1f599f48b218027eb9550745fef43f1 (diff)
downloadscala-41ce53e3e643e85a022393e54c952ec4dee2cb57.tar.gz
scala-41ce53e3e643e85a022393e54c952ec4dee2cb57.tar.bz2
scala-41ce53e3e643e85a022393e54c952ec4dee2cb57.zip
Tests for https://issues.scala-lang.org/browse/SI-5427
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