diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-01-31 19:23:00 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-02-01 09:36:02 +0100 |
commit | 41ce53e3e643e85a022393e54c952ec4dee2cb57 (patch) | |
tree | cbd425144f2126b4aeaeee9cb9597495ee2fa163 /test/pending/run/t5427c.scala | |
parent | 263aa2ead1f599f48b218027eb9550745fef43f1 (diff) | |
download | scala-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.scala | 13 |
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 |