summaryrefslogtreecommitdiff
path: root/test/files/pos
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-03-16 00:46:21 -0700
committerPaul Phillips <paulp@improving.org>2012-03-16 02:01:25 -0700
commitf987afe55e6d4f71c7e9ad10d1ca9f6120dc1132 (patch)
tree64eec0878753d404b9289cd1d1d44ed6259c6910 /test/files/pos
parentacb2c851720141982514b11b4b34ba68dc868bf2 (diff)
downloadscala-f987afe55e6d4f71c7e9ad10d1ca9f6120dc1132.tar.gz
scala-f987afe55e6d4f71c7e9ad10d1ca9f6120dc1132.tar.bz2
scala-f987afe55e6d4f71c7e9ad10d1ca9f6120dc1132.zip
More uniformity for the parser.
Type application and operator notation could not formerly be mixed. Now they can, as the grammar has always suggested.
Diffstat (limited to 'test/files/pos')
-rw-r--r--test/files/pos/dotless-targs.scala12
1 files changed, 12 insertions, 0 deletions
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)
+}