summaryrefslogtreecommitdiff
path: root/test/files/run/t6178.scala
blob: 0b4cf0bbf553738d7db3474ee2650f4845d12d34 (plain) (blame)
1
2
3
4
5
6
7
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}

object Test extends App {
  val plus = typeOf[java.lang.String].member(newTermName("$plus")).asMethod
  println(cm.reflect("").reflectMethod(plus).apply("2"))
}