summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorGrzegorz Kossakowski <grzegorz.kossakowski@gmail.com>2012-09-28 04:46:02 -0700
committerGrzegorz Kossakowski <grzegorz.kossakowski@gmail.com>2012-09-28 04:46:02 -0700
commit57db28c55c3610f508b07940f7077cb73932418f (patch)
tree70b62aa01670cfc4b0877327a96e9d434f152418 /test/files/run
parent0614d2f512ad7b1b3885f81d9e6e779f447a6511 (diff)
parent211c9620ba83de143ea4776f55a3e0c4de11d002 (diff)
downloadscala-57db28c55c3610f508b07940f7077cb73932418f.tar.gz
scala-57db28c55c3610f508b07940f7077cb73932418f.tar.bz2
scala-57db28c55c3610f508b07940f7077cb73932418f.zip
Merge pull request #1399 from paulp/210-unchecked
Much better unchecked warnings.
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/t576.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/files/run/t576.scala b/test/files/run/t576.scala
index dc09d8dc98..756a241572 100644
--- a/test/files/run/t576.scala
+++ b/test/files/run/t576.scala
@@ -12,7 +12,7 @@ object Dingus {
object Test {
val x1 = new A
val x2 = new A
-
+
val x3 = new { self =>
override def equals(other : Any) = other match {
case that: self.type => true
@@ -20,7 +20,7 @@ object Test {
}
}
val x4 = new { self =>
- def f(x: Any) = x match {
+ def f(x: Any): Int = x match {
case _: x1.type => 1
case _: x2.type => 2
case _: x3.type => 3
@@ -35,11 +35,11 @@ object Test {
assert(x1 != x2)
assert(x1 != ())
assert(x2 != x1)
-
+
assert(x3 == x3)
assert(x3 != x2)
assert(x2 != x3)
-
+
List(x1, x2, x3, x4, Dingus) map x4.f foreach println
}
-} \ No newline at end of file
+}