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_2.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_2.check')
-rw-r--r-- | test/files/neg/t4457_2.check | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/neg/t4457_2.check b/test/files/neg/t4457_2.check new file mode 100644 index 0000000000..770a355395 --- /dev/null +++ b/test/files/neg/t4457_2.check @@ -0,0 +1,13 @@ +t4457_2.scala:27: error: ambiguous reference to overloaded definition, +both method aFunc in object ImplicitConvAmbiguity2 of type [A](a: ImplicitConvAmbiguity2.NZ[A])ImplicitConvAmbiguity2.AA[A] +and method aFunc in object ImplicitConvAmbiguity2 of type [A](a: ImplicitConvAmbiguity2.NE[A])ImplicitConvAmbiguity2.AA[A] +match argument types (Float) + val x = aFunc(4F) + ^ +t4457_2.scala:31: error: ambiguous reference to overloaded definition, +both method aFunc in object ImplicitConvAmbiguity2 of type [A](a: ImplicitConvAmbiguity2.NZ[A])ImplicitConvAmbiguity2.AA[A] +and method aFunc in object ImplicitConvAmbiguity2 of type [A](a: ImplicitConvAmbiguity2.NE[A])ImplicitConvAmbiguity2.AA[A] +match argument types (Float) + bFunc(aFunc(4F)) + ^ +two errors found |