From e51b8845fb20fe3a4e1c655d4b72e2833906bbc2 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 20 Dec 2015 22:00:29 +0100 Subject: The big pending/pos test triage --- tests/invalid/pos/dotless-targs.scala | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/invalid/pos/dotless-targs.scala (limited to 'tests/invalid/pos/dotless-targs.scala') diff --git a/tests/invalid/pos/dotless-targs.scala b/tests/invalid/pos/dotless-targs.scala new file mode 100644 index 000000000..7394f361a --- /dev/null +++ b/tests/invalid/pos/dotless-targs.scala @@ -0,0 +1,10 @@ +// Type arguments on infix operators are not supported by the syntax +class A { + def fn1 = List apply 1 + def fn2 = List apply[Int] 2 + + def g1: Char = "g1" toList 0 + def g2: Char = "g2" apply 1 + + def h1 = List apply[List[Int]] (List(1), List(2)) mapConserve[List[Any]] (x => x) +} -- cgit v1.2.3