diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-03-11 22:55:36 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-03-11 22:55:36 -0700 |
commit | d168c7d8844830987f24325b608625153a0cfa7c (patch) | |
tree | 30360226a8b474644abd63661891ea92911f3bd6 /test/files/pos/t7234.scala | |
parent | 8b7db17d78aee2dadb904e0039390960dda6e56d (diff) | |
parent | 83c9c764b528a7a1c1d39c480d22c8e3a71d5a58 (diff) | |
download | scala-d168c7d8844830987f24325b608625153a0cfa7c.tar.gz scala-d168c7d8844830987f24325b608625153a0cfa7c.tar.bz2 scala-d168c7d8844830987f24325b608625153a0cfa7c.zip |
Merge pull request #2225 from retronym/ticket/7234
SI-7234 Make named args play nice with dep. method types
Diffstat (limited to 'test/files/pos/t7234.scala')
-rw-r--r-- | test/files/pos/t7234.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/pos/t7234.scala b/test/files/pos/t7234.scala new file mode 100644 index 0000000000..59a233d835 --- /dev/null +++ b/test/files/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) +} |