diff options
author | Paul Phillips <paulp@improving.org> | 2012-08-21 07:15:27 +0200 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-09-01 10:02:22 -0700 |
commit | d9c0cb6165bd60d79bdf764291c417c86623b042 (patch) | |
tree | 7b9db194590ae8d884d4cafc2e12f923b4d893ba /test/files/neg/not-possible-cause.check | |
parent | 6b87cdcd7bd6d1932e87e6bf8dc6029d6461a488 (diff) | |
download | scala-d9c0cb6165bd60d79bdf764291c417c86623b042.tar.gz scala-d9c0cb6165bd60d79bdf764291c417c86623b042.tar.bz2 scala-d9c0cb6165bd60d79bdf764291c417c86623b042.zip |
Suppressed 'possible cause' mis-warning.
I have seen this warning a bunch of times and it has not yet
been close to right.
Diffstat (limited to 'test/files/neg/not-possible-cause.check')
-rw-r--r-- | test/files/neg/not-possible-cause.check | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/not-possible-cause.check b/test/files/neg/not-possible-cause.check new file mode 100644 index 0000000000..9111cd0d3d --- /dev/null +++ b/test/files/neg/not-possible-cause.check @@ -0,0 +1,10 @@ +not-possible-cause.scala:2: error: type mismatch; + found : a.type (with underlying type A) + required: AnyRef +Note that implicit conversions are not applicable because they are ambiguous: + both method any2stringfmt in object Predef of type (x: Any)scala.runtime.StringFormat + and method any2stringadd in object Predef of type (x: Any)scala.runtime.StringAdd + are possible conversion functions from a.type to AnyRef + def foo[A <: Product](a: A) { type X = a.type } + ^ +one error found |