summaryrefslogtreecommitdiff
path: root/test/files/pos/t6925b.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2013-01-06 20:41:23 -0800
committerAdriaan Moors <adriaan.moors@typesafe.com>2013-01-09 22:31:57 -0800
commite314ff1621ee26e1e4ec65abc6e360a7731bf488 (patch)
treeafd38571e98375ecc1f7ad635a5eaf76a6c2b8c1 /test/files/pos/t6925b.scala
parentb1cea212f36b27636ef6aab76bf8992210a4426e (diff)
downloadscala-e314ff1621ee26e1e4ec65abc6e360a7731bf488.tar.gz
scala-e314ff1621ee26e1e4ec65abc6e360a7731bf488.tar.bz2
scala-e314ff1621ee26e1e4ec65abc6e360a7731bf488.zip
rework partial function synthesis
no behavioral changes, just highly overdue cleanup some TODOs for further improvements
Diffstat (limited to 'test/files/pos/t6925b.scala')
-rw-r--r--test/files/pos/t6925b.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/files/pos/t6925b.scala b/test/files/pos/t6925b.scala
new file mode 100644
index 0000000000..ca25146dfc
--- /dev/null
+++ b/test/files/pos/t6925b.scala
@@ -0,0 +1,18 @@
+// code *generated* by test/scaladoc/run/SI-5933.scala
+// duplicated here because it's related to SI-6925
+
+import language.higherKinds
+
+abstract class Base[M[_, _]] {
+ def foo[A, B]: M[(A, B), Any]
+}
+
+class Derived extends Base[PartialFunction] {
+ def foo[AA, BB] /*: PartialFunction[(A, B) => Any]*/ = { case (a, b) => (a: AA, b: BB) }
+}
+
+object Test {
+ lazy val lx = { println("hello"); 3 }
+ def test1(x: Int = lx) = ???
+ def test2(x: Int = lx match { case 0 => 1; case 3 => 4 }) = ???
+} \ No newline at end of file