summaryrefslogtreecommitdiff
path: root/test/files/pos/t5154.scala
blob: 2629308f00666d92029df4ef0454c7dff43c2d7d (plain) (blame)
1
2
3
4
5
6
7
8
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> => }
}