diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2015-01-22 15:02:53 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2015-01-22 15:02:53 +1000 |
commit | 4286e2df2effc4102f6ed5e576848d60bbc8dcb6 (patch) | |
tree | acc14285aaf924b740d470ed848ca6c21d9e9712 /test/files/pos/t5154.scala | |
parent | 89cf671469efad05ecb2bde88d8f5202199d8d30 (diff) | |
parent | 4d96a8ad0b7050303e0b841708ba452e708f6a35 (diff) | |
download | scala-4286e2df2effc4102f6ed5e576848d60bbc8dcb6.tar.gz scala-4286e2df2effc4102f6ed5e576848d60bbc8dcb6.tar.bz2 scala-4286e2df2effc4102f6ed5e576848d60bbc8dcb6.zip |
Merge pull request #4214 from som-snytt/issue/5154
SI-5154 Parse leading literal brace in XML pattern
Diffstat (limited to 'test/files/pos/t5154.scala')
-rw-r--r-- | test/files/pos/t5154.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/pos/t5154.scala b/test/files/pos/t5154.scala new file mode 100644 index 0000000000..2629308f00 --- /dev/null +++ b/test/files/pos/t5154.scala @@ -0,0 +1,9 @@ + +trait Z { + // extra space made the pattern OK + def f = <z> {{3}}</z> match { case <z> {{3}}</z> => } + + // lack of space: error: illegal start of simple pattern + def g = <z>{{3}}</z> match { case <z>{{3}}</z> => } +} + |