diff options
author | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2011-04-29 14:27:40 +0000 |
---|---|---|
committer | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2011-04-29 14:27:40 +0000 |
commit | 96ab92d67c5ea5af3f322cd22205139b1bc846b8 (patch) | |
tree | 8f45b390bab3533659364863b8a09d87f99ba952 /test/files/neg/t4457_1.check | |
parent | 6c1feb586bc3687ee08d2395233c849550530ba7 (diff) | |
download | scala-96ab92d67c5ea5af3f322cd22205139b1bc846b8.tar.gz scala-96ab92d67c5ea5af3f322cd22205139b1bc846b8.tar.bz2 scala-96ab92d67c5ea5af3f322cd22205139b1bc846b8.zip |
Closes #4457. Review by odersky
Diffstat (limited to 'test/files/neg/t4457_1.check')
-rw-r--r-- | test/files/neg/t4457_1.check | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/t4457_1.check b/test/files/neg/t4457_1.check new file mode 100644 index 0000000000..c6b83c6ce5 --- /dev/null +++ b/test/files/neg/t4457_1.check @@ -0,0 +1,7 @@ +t4457_1.scala:27: error: ambiguous reference to overloaded definition, +both method aFunc in object ImplicitConvAmbiguity2 of type [A](a: ImplicitConvAmbiguity2.NZ[A])ImplicitConvAmbiguity2.AA[Float] +and method aFunc in object ImplicitConvAmbiguity2 of type [A](a: ImplicitConvAmbiguity2.NE[A])ImplicitConvAmbiguity2.AA[A] +match argument types (Float) + val x = aFunc(4F) + ^ +one error found |