aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/desugar.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-12-07 21:46:30 +0100
committerMartin Odersky <odersky@gmail.com>2013-12-08 09:26:43 +0100
commit2f7e4a64179c4abf246aceff39857a14c8c46f68 (patch)
treee17dff7929499b5d7c03ee309cfffbdc7baed9e5 /tests/pos/desugar.scala
parent0067358e702ba7995e534a2272c569c4e2e4e80a (diff)
downloaddotty-2f7e4a64179c4abf246aceff39857a14c8c46f68.tar.gz
dotty-2f7e4a64179c4abf246aceff39857a14c8c46f68.tar.bz2
dotty-2f7e4a64179c4abf246aceff39857a14c8c46f68.zip
Better reporting for pattern matching errors.
Diffstat (limited to 'tests/pos/desugar.scala')
-rw-r--r--tests/pos/desugar.scala8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/pos/desugar.scala b/tests/pos/desugar.scala
index fbf55d18b..7a12de373 100644
--- a/tests/pos/desugar.scala
+++ b/tests/pos/desugar.scala
@@ -29,10 +29,14 @@ object desugar {
object patDefs {
- val xs = Cons(1, Cons(2, Nil))
+ val xs: List[Int] = Cons(1, Cons(2, Nil))
- val Cons(y, ys) = xs
+ val Cons(y, ys) = xs
val Cons(z, _) = xs
val Cons(_, _) = xs
+
+ val (cons: Cons[Int]) = xs
+
+ val x, y, z: Int = 1
}
} \ No newline at end of file