diff options
author | Martin Odersky <odersky@gmail.com> | 2011-11-22 18:07:51 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-11-22 18:07:51 +0000 |
commit | ac031789039d421186567cf3b9a484957e6e5f8e (patch) | |
tree | 5145e02ea0debdf1cd2a467ad8568e2813a03c56 /test/files | |
parent | cd696035896fd82c622687107ec4b70cf3f3298e (diff) | |
download | scala-ac031789039d421186567cf3b9a484957e6e5f8e.tar.gz scala-ac031789039d421186567cf3b9a484957e6e5f8e.tar.bz2 scala-ac031789039d421186567cf3b9a484957e6e5f8e.zip |
Compiler part of fast orElse.
"According to the spec this code should not be legal. Disabling for
now." Need to come back and either make it work or (more likely) make
nsc reject the test)
Diffstat (limited to 'test/files')
-rwxr-xr-x | test/files/pos/t1545.scala | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/test/files/pos/t1545.scala b/test/files/pos/t1545.scala deleted file mode 100755 index 51df606da3..0000000000 --- a/test/files/pos/t1545.scala +++ /dev/null @@ -1,16 +0,0 @@ -object Main extends App { - - case class Foo (field : Option[String]) - - val x : PartialFunction[Foo,Int] = - { - c => c.field match { - case Some (s) => 42 - case None => 99 - } - } - - println (x (Foo (None))) // prints 99 - println (x (Foo (Some ("foo")))) // prints 42 - -} |