aboutsummaryrefslogtreecommitdiff
path: root/src/typedapply.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-12-02 18:04:05 +0100
committerMartin Odersky <odersky@gmail.com>2013-12-02 18:04:05 +0100
commit14528228331bdb588278002208c46447e164870c (patch)
tree62e8ccdc7475c597af2f86628415ec29b90b4a2d /src/typedapply.scala
parentbddeaecb8f69032c5117e926ef67afc0deedd0dd (diff)
downloaddotty-14528228331bdb588278002208c46447e164870c.tar.gz
dotty-14528228331bdb588278002208c46447e164870c.tar.bz2
dotty-14528228331bdb588278002208c46447e164870c.zip
Fixes to type applications and unapply.
Diffstat (limited to 'src/typedapply.scala')
-rw-r--r--src/typedapply.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/typedapply.scala b/src/typedapply.scala
new file mode 100644
index 000000000..e28e59d4f
--- /dev/null
+++ b/src/typedapply.scala
@@ -0,0 +1,11 @@
+object typedapply {
+
+ def foo[X, Y](x: X, y: Y) = (x, y)
+
+ foo(1, "abc")
+
+ foo[Int, String](1, "abc")
+
+ foo[Int, String] _
+
+} \ No newline at end of file