From f987afe55e6d4f71c7e9ad10d1ca9f6120dc1132 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 16 Mar 2012 00:46:21 -0700 Subject: More uniformity for the parser. Type application and operator notation could not formerly be mixed. Now they can, as the grammar has always suggested. --- test/files/pos/dotless-targs.scala | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/files/pos/dotless-targs.scala (limited to 'test/files/pos') diff --git a/test/files/pos/dotless-targs.scala b/test/files/pos/dotless-targs.scala new file mode 100644 index 0000000000..8337352d18 --- /dev/null +++ b/test/files/pos/dotless-targs.scala @@ -0,0 +1,12 @@ +class A { + def fn1 = List apply 1 + def fn2 = List apply[Int] 2 + + def f1 = "f1" isInstanceOf[String] + + def g1 = "g1" toList + def g2 = "g2" toList 2 + def g3 = "g3" apply 3 + + def h1 = List apply[List[Int]] (List(1), List(2)) mapConserve[List[Any]] (x => x) +} -- cgit v1.2.3