diff options
author | Dominik Gruntz <dominik.gruntz@fhnw.ch> | 2012-07-11 20:10:30 +0200 |
---|---|---|
committer | Dominik Gruntz <dominik.gruntz@fhnw.ch> | 2012-07-11 20:10:30 +0200 |
commit | 4aeaf9015befc4f16a962896daa7deda99e11605 (patch) | |
tree | 8fd80cf5cc67bda7962aa7998e5bcf408dc73a44 /test/files/run/reflect-resolveoverload-invalid.scala | |
parent | bad93927836f302be3b973335a63bb5e69b2237c (diff) | |
download | scala-4aeaf9015befc4f16a962896daa7deda99e11605.tar.gz scala-4aeaf9015befc4f16a962896daa7deda99e11605.tar.bz2 scala-4aeaf9015befc4f16a962896daa7deda99e11605.zip |
SI-6061 adds weakly conformance for number types to resolveOverloaded
This fix changes resolveOverloaded in scala.reflect.internal
so that numeric widening on the actual argument types is also
considered for primitive number types. Needs changes in functions
applicable and mostSpecific.
Diffstat (limited to 'test/files/run/reflect-resolveoverload-invalid.scala')
-rw-r--r-- | test/files/run/reflect-resolveoverload-invalid.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/reflect-resolveoverload-invalid.scala b/test/files/run/reflect-resolveoverload-invalid.scala index def28ccbb4..8c5dc9f94b 100644 --- a/test/files/run/reflect-resolveoverload-invalid.scala +++ b/test/files/run/reflect-resolveoverload-invalid.scala @@ -27,7 +27,7 @@ object Test extends App { val d = t member u.newTermName("d") asTermSymbol val e = t member u.newTermName("e") asTermSymbol - val n1 = a.resolveOverloaded(posVargs = List(u.typeOf[Char])) + 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])) |