From 14528228331bdb588278002208c46447e164870c Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 2 Dec 2013 18:04:05 +0100 Subject: Fixes to type applications and unapply. --- tests/neg/typedapply.scala | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/neg/typedapply.scala (limited to 'tests/neg/typedapply.scala') 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 -- cgit v1.2.3