| [#131] | project: compiler | priority: medium | category: bug | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Matthias | Burak | won't fix | 2003-09-11 15:23:14.0 | |
| subject | Nested sequence patterns | |||
| code |
class Expr;
case class One(xs: List[Expr]) extends Expr;
case class Two() extends Expr;
object Foo {
def test(xs: List[Expr]) = xs match {
case List(One(List(_*))*,a,Two()?) =>
}
} |
|||
| what happened | Pattern matcher crashes in call to TreeCloner:
|
|||
| what expected | Compiles. | |||
| [back to overview] | ||||
| Burak edited on 2003-09-24 11:33:49.0 |
| I reassign this bug to Michel, who wrote the TreeCloner and who might know better where the problem lies. |
| Burak edited on 2003-09-24 15:28:46.0 |
better description of the problem.
The TreeCloner was created with
TreeCloner st = new TreeCloner(cf.unit.global, freshenMap, Type.IdMap );where freshenMap is the empty HashMap. it seems TreeCloner.getSymbolFor does not do what it promises in the comment. |
| Matthias edited on 2003-10-07 12:54:23.0 |
| Michel said that he's not responsible, so I assigned it to the new maintainer Philippe. |
| Philippe edited on 2003-10-15 14:32:51.0 |
|
The problem is not in Burak, you should reread the (now updated) description of |
| Lex edited on 2006-03-28 13:33:32.0 |
| The title says it: nested sequence patterns. The current compiler generates a nice message saying that this is not supported. |