diff options
author | clhodapp <clhodapp1@gmail.com> | 2012-07-30 09:29:43 -0500 |
---|---|---|
committer | clhodapp <clhodapp1@gmail.com> | 2012-07-30 09:29:43 -0500 |
commit | 7d8c46479104a694c79a18861a1713a0a65e89f1 (patch) | |
tree | 972f88d78e3f9d5e23bcfec45ec762a6b22f3de6 /test/files/run/reflect-resolveoverload-invalid.scala | |
parent | d1b7b24b0bfb808875339366a13ed00672767c16 (diff) | |
download | scala-7d8c46479104a694c79a18861a1713a0a65e89f1.tar.gz scala-7d8c46479104a694c79a18861a1713a0a65e89f1.tar.bz2 scala-7d8c46479104a694c79a18861a1713a0a65e89f1.zip |
Removed resolveOverloaded
It was decided to remove it until the next release
Diffstat (limited to 'test/files/run/reflect-resolveoverload-invalid.scala')
-rw-r--r-- | test/files/run/reflect-resolveoverload-invalid.scala | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/test/files/run/reflect-resolveoverload-invalid.scala b/test/files/run/reflect-resolveoverload-invalid.scala deleted file mode 100644 index 8c5dc9f94b..0000000000 --- a/test/files/run/reflect-resolveoverload-invalid.scala +++ /dev/null @@ -1,43 +0,0 @@ - -class A -class B extends A - -class C { - def a(x: Int) = 1 - def a(x: String) = 2 - def b(x: B) = 3 - def c(x: A, y: B) = 4 - def c(x: B, y: A) = 5 - def d[T](x: Int) = 6 - def d(x: String) = 7 - def e(x: A) = 8 - def e(x: =>B) = 9 -} - -object Test extends App { - val cm = reflect.runtime.currentMirror - val u = cm.universe - - val x = new C - val t = u.typeOf[C] - - val a = t member u.newTermName("a") asTermSymbol - val b = t member u.newTermName("b") asTermSymbol - val c = t member u.newTermName("c") asTermSymbol - val d = t member u.newTermName("d") asTermSymbol - val e = t member u.newTermName("e") asTermSymbol - - val n1 = a.resolveOverloaded(posVargs = List(u.typeOf[Long])) - val n2 = b.resolveOverloaded(posVargs = List(u.typeOf[A])) - val n3 = c.resolveOverloaded(posVargs = List(u.typeOf[B], u.typeOf[B])) - val n4 = d.resolveOverloaded(targs = List(u.typeOf[Int])) - val n5 = d.resolveOverloaded() - val n6 = e.resolveOverloaded(posVargs = List(u.typeOf[B])) - - assert(n1 == u.NoSymbol) - assert(n2 == u.NoSymbol) - assert(n3 == u.NoSymbol) - assert(n4 == u.NoSymbol) - assert(n5 == u.NoSymbol) - assert(n6 == u.NoSymbol) -} |