diff options
author | Paul Phillips <paulp@improving.org> | 2012-03-20 13:05:17 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-03-20 13:55:15 -0700 |
commit | d8ba5d091e5641553b438ef9930a6023a2709dcd (patch) | |
tree | 6d1f0dce613bea08926005b0232033c774a68970 /test/files/pos/irrefutable.scala | |
parent | 743d954abfae4ae8a2e2886dc527df6a33a669c1 (diff) | |
download | scala-d8ba5d091e5641553b438ef9930a6023a2709dcd.tar.gz scala-d8ba5d091e5641553b438ef9930a6023a2709dcd.tar.bz2 scala-d8ba5d091e5641553b438ef9930a6023a2709dcd.zip |
Revert irrefutability commits.
Temporary reversion of irrefutability commits in interests
of stable milestone. Expect to restore shortly.
Diffstat (limited to 'test/files/pos/irrefutable.scala')
-rw-r--r-- | test/files/pos/irrefutable.scala | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/test/files/pos/irrefutable.scala b/test/files/pos/irrefutable.scala deleted file mode 100644 index 0a792b644a..0000000000 --- a/test/files/pos/irrefutable.scala +++ /dev/null @@ -1,22 +0,0 @@ -// The test which this should perform but does not -// is that f1 is recognized as irrefutable and f2 is not -// This can be recognized via the generated classes: -// -// A$$anonfun$f1$1.class -// A$$anonfun$f2$1.class -// A$$anonfun$f2$2.class -// -// The extra one in $f2$ is the filter. -// -// !!! Marking with exclamation points so maybe someday -// this test will be finished. -class A { - case class Foo[T](x: T) - - def f1(xs: List[Foo[Int]]) = { - for (Foo(x: Int) <- xs) yield x - } - def f2(xs: List[Foo[Any]]) = { - for (Foo(x: Int) <- xs) yield x - } -} |