aboutsummaryrefslogtreecommitdiff
path: root/tests/neg
diff options
context:
space:
mode:
Diffstat (limited to 'tests/neg')
-rw-r--r--tests/neg/typedapply.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/neg/typedapply.scala b/tests/neg/typedapply.scala
new file mode 100644
index 000000000..ae168bcd9
--- /dev/null
+++ b/tests/neg/typedapply.scala
@@ -0,0 +1,17 @@
+object typedapply {
+
+ def foo[X, Y](x: X, y: Y) = (x, y)
+
+ foo[Int](1, "abc")
+
+ foo[Int, String, String](1, "abc")
+
+ def bar(x: Int) = x
+
+ bar[Int](1)
+
+ def baz[X >: Y, Y <: String](x: X, y: Y) = (x, y)
+
+ baz[Int, String](1, "abc")
+
+} \ No newline at end of file