diff options
author | Paul Phillips <paulp@improving.org> | 2012-08-29 08:25:26 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-08-29 10:20:43 -0700 |
commit | d3f879a6b0165310bb756b811ea3f97685533948 (patch) | |
tree | 759f4ff95bc81c10a654d4f6d4c5c9d3ce82cbce /test/files/neg/t900.check | |
parent | e03a5b766be27a1f43c9151a611b04519a2b15df (diff) | |
download | scala-d3f879a6b0165310bb756b811ea3f97685533948.tar.gz scala-d3f879a6b0165310bb756b811ea3f97685533948.tar.bz2 scala-d3f879a6b0165310bb756b811ea3f97685533948.zip |
Expanded the reach of value classes.
Now extending AnyVal:
- RichInt, RichDouble, etc.
- ArrayOps.ofRef, ofBoolean, etc
- StringAdd
- StringFormat
The rest of it is the changes necessary to enable those.
Diffstat (limited to 'test/files/neg/t900.check')
-rw-r--r-- | test/files/neg/t900.check | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/test/files/neg/t900.check b/test/files/neg/t900.check index 4611ceba8c..ff5304a135 100644 --- a/test/files/neg/t900.check +++ b/test/files/neg/t900.check @@ -1,10 +1,6 @@ t900.scala:4: error: type mismatch; found : Foo.this.x.type (with underlying type Foo.this.bar) 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 Foo.this.x.type to AnyRef def break(): x.type ^ one error found |