diff options
author | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-07-30 11:39:19 -0700 |
---|---|---|
committer | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-07-30 11:39:19 -0700 |
commit | 00fd27c3b4355054c883a15e08b6cc2449ae9253 (patch) | |
tree | 457b080d9e25590954ee809aad5acff5929ce602 /test/files/run/reflect-resolveoverload1.scala | |
parent | 147e6c2768c13312144b92f1c34a53cc178212a2 (diff) | |
parent | 7d8c46479104a694c79a18861a1713a0a65e89f1 (diff) | |
download | scala-00fd27c3b4355054c883a15e08b6cc2449ae9253.tar.gz scala-00fd27c3b4355054c883a15e08b6cc2449ae9253.tar.bz2 scala-00fd27c3b4355054c883a15e08b6cc2449ae9253.zip |
Merge pull request #960 from clhodapp/remove-resolve-overloaded
Remove resolveOverloaded
Diffstat (limited to 'test/files/run/reflect-resolveoverload1.scala')
-rw-r--r-- | test/files/run/reflect-resolveoverload1.scala | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/test/files/run/reflect-resolveoverload1.scala b/test/files/run/reflect-resolveoverload1.scala deleted file mode 100644 index a859a0ec4e..0000000000 --- a/test/files/run/reflect-resolveoverload1.scala +++ /dev/null @@ -1,19 +0,0 @@ -import scala.reflect.runtime.universe._ -import scala.reflect.runtime.{currentMirror => cm} - -object Test extends App { - - val s = "hello world" - val m = cm.reflect(s) - val sc = m.symbol - val st = sc.asType - val meth = (st member newTermName("indexOf")).asTermSymbol - val IntType = definitions.IntClass.asType - val indexOf = (meth resolveOverloaded(posVargs = List(IntType))).asMethodSymbol - assert(m.reflectMethod(indexOf)('w') == 6) - assert((m.reflectMethod(indexOf)('w') match { case x: Int => x }) == 6) - - val meth2 = (st member newTermName("substring")).asTermSymbol - val substring = (meth2 resolveOverloaded(posVargs = List(IntType, IntType))).asMethodSymbol - assert(m.reflectMethod(substring)(2, 6) == "llo ") -} |