summaryrefslogtreecommitdiff
path: root/test/files/run/reflection-magicsymbols-vanilla.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/reflection-magicsymbols-vanilla.scala')
-rw-r--r--test/files/run/reflection-magicsymbols-vanilla.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/files/run/reflection-magicsymbols-vanilla.scala b/test/files/run/reflection-magicsymbols-vanilla.scala
index 32819dcc46..2bde3d8874 100644
--- a/test/files/run/reflection-magicsymbols-vanilla.scala
+++ b/test/files/run/reflection-magicsymbols-vanilla.scala
@@ -1,3 +1,5 @@
+import scala.language.postfixOps
+
class A {
def foo1(x: Int*) = ???
def foo2(x: => Int) = ???
@@ -12,7 +14,7 @@ class A {
object Test extends App {
import scala.reflect.runtime.universe._
def test(n: Int): Unit = {
- val sig = typeOf[A] member newTermName("foo" + n) typeSignature
+ val sig = typeOf[A] member TermName("foo" + n) typeSignature
val x = sig.asInstanceOf[MethodType].params.head
println(x.typeSignature)
}