summaryrefslogtreecommitdiff
path: root/test/pending/pos/unapplyGeneric.scala
diff options
context:
space:
mode:
authorBurak Emir <emir@epfl.ch>2007-01-05 15:24:26 +0000
committerBurak Emir <emir@epfl.ch>2007-01-05 15:24:26 +0000
commita3d868bf57e42a3391df774a5e2cfd7123828625 (patch)
treeb763b2759b734ad9c904736d4af787c673a5f0e6 /test/pending/pos/unapplyGeneric.scala
parent735573067a9f827534aa6cf28d0f4e845466540a (diff)
downloadscala-a3d868bf57e42a3391df774a5e2cfd7123828625.tar.gz
scala-a3d868bf57e42a3391df774a5e2cfd7123828625.tar.bz2
scala-a3d868bf57e42a3391df774a5e2cfd7123828625.zip
removed Xkilloption from ExplicitOuter
tab->whitespace in PatternMatcher modified test case unapplySeq new test case unapplyGeneric
Diffstat (limited to 'test/pending/pos/unapplyGeneric.scala')
-rw-r--r--test/pending/pos/unapplyGeneric.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/pending/pos/unapplyGeneric.scala b/test/pending/pos/unapplyGeneric.scala
new file mode 100644
index 0000000000..3798d0b466
--- /dev/null
+++ b/test/pending/pos/unapplyGeneric.scala
@@ -0,0 +1,11 @@
+object Bar {
+ def unapply[A,B](bar:Bar[A,B]) = Some(bar)
+}
+
+class Bar[A,B](val _1:A, val _2:B) extends Product2[A,B]
+
+object Test {
+ Bar(2, 'a') match {
+ case Bar(x,y) =>
+ }
+}