summaryrefslogtreecommitdiff
path: root/test/pending/run/t5427c.scala
blob: ba718030807ff125bbeb7e345e2b0efb18772506 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import scala.reflect.runtime.universe._

class Foo(bar: Int)

object Test extends App {
  val foo = new Foo(2)
  val tpe = getType(foo)
  val bar = tpe.nonPrivateMember(TermName("bar"))
  bar match {
    case NoSymbol => println("no public member")
    case _ => println("i'm screwed")
  }
}