diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-03-12 16:47:58 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-03-12 17:18:19 -0700 |
commit | 5f324591a4c4af53f27a64932b843ba1423c37cd (patch) | |
tree | 235c718063583c8d4001e1216eccd533da20bda9 /test/files/pos/t7234b.scala | |
parent | 86b0231d7c4970cfff775ef6511a822d149e755c (diff) | |
parent | 52adf130409df57fd612a119e352345cf1c93979 (diff) | |
download | scala-5f324591a4c4af53f27a64932b843ba1423c37cd.tar.gz scala-5f324591a4c4af53f27a64932b843ba1423c37cd.tar.bz2 scala-5f324591a4c4af53f27a64932b843ba1423c37cd.zip |
Merge 2.10.x into master
Conflicts:
src/compiler/scala/reflect/reify/Errors.scala
src/compiler/scala/tools/nsc/typechecker/NamesDefaults.scala
Diffstat (limited to 'test/files/pos/t7234b.scala')
-rw-r--r-- | test/files/pos/t7234b.scala | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/files/pos/t7234b.scala b/test/files/pos/t7234b.scala new file mode 100644 index 0000000000..fee98e87a8 --- /dev/null +++ b/test/files/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()() +} |