summaryrefslogtreecommitdiff
path: root/test/files/run/type-currying.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-12-27 07:00:07 -0800
committerPaul Phillips <paulp@improving.org>2011-12-27 07:06:04 -0800
commit935ba9ba3021b518dab8f22c1e5d897865777aab (patch)
tree444c2f7c375b91beb128e3f47f42f3d12934dbfc /test/files/run/type-currying.check
parentf737e35ddf43599043ab78404c4f9a13e6d02c9b (diff)
downloadscala-935ba9ba3021b518dab8f22c1e5d897865777aab.tar.gz
scala-935ba9ba3021b518dab8f22c1e5d897865777aab.tar.bz2
scala-935ba9ba3021b518dab8f22c1e5d897865777aab.zip
Consecutive type application.
The parser through I think a quirk of history would not allow back to back type applications, like expr[T1, T2][T3, T4] Now it does, meaning the only thing it can: val n0 = Partial[immutable.HashMap][String][Int] ++ Seq(("a", 1)) val n1 = Partial.apply[immutable.HashMap].apply[String].apply[Int] ++ Seq(("a", 1)) assert(n0 == n1)
Diffstat (limited to 'test/files/run/type-currying.check')
-rw-r--r--test/files/run/type-currying.check27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/files/run/type-currying.check b/test/files/run/type-currying.check
new file mode 100644
index 0000000000..e5db238ca5
--- /dev/null
+++ b/test/files/run/type-currying.check
@@ -0,0 +1,27 @@
+Map(abc -> 55)
+(a,0)
+(b,1)
+(c,2)
+(d,3)
+(e,4)
+(f,5)
+(g,6)
+(h,7)
+(i,8)
+(j,9)
+(k,10)
+(l,11)
+(m,12)
+(n,13)
+(o,14)
+(p,15)
+(q,16)
+(r,17)
+(s,18)
+(t,19)
+(u,20)
+(v,21)
+(w,22)
+(x,23)
+(y,24)
+(z,25)