summaryrefslogtreecommitdiff
path: root/test/files/neg
diff options
context:
space:
mode:
authorJosh Suereth <Joshua.Suereth@gmail.com>2012-08-30 17:32:09 -0700
committerJosh Suereth <Joshua.Suereth@gmail.com>2012-08-30 17:32:09 -0700
commit78401c8220fb56ed077b99a5ffb4205c14fee736 (patch)
tree6e29d7c50c273f789070a3b08fe30bbdb4ccff58 /test/files/neg
parentffe5f56eb500ed4dd856087864d8d3313eace931 (diff)
parent30eac476d054c50408a860f1574dcf92c7378e4a (diff)
downloadscala-78401c8220fb56ed077b99a5ffb4205c14fee736.tar.gz
scala-78401c8220fb56ed077b99a5ffb4205c14fee736.tar.bz2
scala-78401c8220fb56ed077b99a5ffb4205c14fee736.zip
Merge pull request #1213 from paulp/topic/anyval
Expanded the reach of value classes.
Diffstat (limited to 'test/files/neg')
-rw-r--r--test/files/neg/t900.check4
-rw-r--r--test/files/neg/unit2anyref.check2
2 files changed, 0 insertions, 6 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
diff --git a/test/files/neg/unit2anyref.check b/test/files/neg/unit2anyref.check
index 10fe1861f5..6d11461700 100644
--- a/test/files/neg/unit2anyref.check
+++ b/test/files/neg/unit2anyref.check
@@ -1,8 +1,6 @@
unit2anyref.scala:2: error: type mismatch;
found : Unit
required: AnyRef
-Note: Unit is not implicitly converted to AnyRef. You can safely
-pattern match `x: AnyRef` or cast `x.asInstanceOf[AnyRef]` to do so.
val x: AnyRef = () // this should not succeed.
^
one error found