summaryrefslogtreecommitdiff
path: root/test/pending
diff options
context:
space:
mode:
authorJames Iry <jamesiry@gmail.com>2013-05-29 12:53:20 -0700
committerJames Iry <jamesiry@gmail.com>2013-05-29 12:53:20 -0700
commit810a6de757a44d7d481e0ee1bd9c2fb8abe6043d (patch)
tree851f9953d3da078e5dc4b9529b396a4bf06af153 /test/pending
parent6cc39842f79bcf266ca3f49eca1f2a1ba46ed817 (diff)
parent851e39991e7a929e1d83d5e35a024d5b9bd0b75f (diff)
downloadscala-810a6de757a44d7d481e0ee1bd9c2fb8abe6043d.tar.gz
scala-810a6de757a44d7d481e0ee1bd9c2fb8abe6043d.tar.bz2
scala-810a6de757a44d7d481e0ee1bd9c2fb8abe6043d.zip
Merge pull request #2601 from retronym/ticket/7516
SI-7516 Revert "SI-7234 Make named args play nice w. depmet types"
Diffstat (limited to 'test/pending')
-rw-r--r--test/pending/pos/t7234.scala15
-rw-r--r--test/pending/pos/t7234b.scala20
2 files changed, 35 insertions, 0 deletions
diff --git a/test/pending/pos/t7234.scala b/test/pending/pos/t7234.scala
new file mode 100644
index 0000000000..59a233d835
--- /dev/null
+++ b/test/pending/pos/t7234.scala
@@ -0,0 +1,15 @@
+trait Main {
+ trait A {
+ type B
+ }
+ trait C {
+ def c(a: A, x: Int = 0)(b: a.B)
+ }
+ def c: C
+ def d(a: A, x: Int = 0)(b: a.B)
+
+ def ok1(a: A)(b: a.B) = c.c(a, 42)(b)
+ def ok2(a: A)(b: a.B) = d(a)(b)
+
+ def fail(a: A)(b: a.B) = c.c(a)(b)
+}
diff --git a/test/pending/pos/t7234b.scala b/test/pending/pos/t7234b.scala
new file mode 100644
index 0000000000..fee98e87a8
--- /dev/null
+++ b/test/pending/pos/t7234b.scala
@@ -0,0 +1,20 @@
+trait Main {
+ trait A {
+ type B
+ def b: B
+ }
+ trait C {
+ def c(a: A, x: Int = 0)(b: => a.B, bs: a.B*)
+ def d(a: A = null, x: Int = 0)(b1: => a.B = a.b, b2: a.B = a.b)
+ }
+ def c: C
+ def ok(a: A)(b: a.B) = c.c(a, 42)(b)
+ def fail(a: A)(b: a.B) = c.c(a)(b)
+ def fail2(a: A)(b: a.B) = c.c(a)(b, b)
+ def fail3(a: A)(b: a.B) = c.c(a)(b, Seq[a.B](b): _*)
+
+ def fail4(a: A)(b: a.B) = c.d(a)()
+ def fail5(a: A)(b: a.B) = c.d(a)(b1 = a.b)
+ def fail6(a: A)(b: a.B) = c.d(a)(b2 = a.b)
+ def fail7(a: A)(b: a.B) = c.d()()
+}