| [#875] | project: compiler | priority: low | category: bug | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Nikolay | Martin | fixed | 2007-01-08 22:56:32.0 | |
| subject | [contrib #277] Parameters get ignored when used alongside : _* | |||
| code |
val x = List(4, 5, 6) val y = List(1, 2, 3, x : _*) |
|||
| what happened | y = List(4, 5, 5) |
|||
| what expected | y = List(1, 2, 3, 4, 5, 6) Additionally, it would be nice to automatically apply concatenation, such that one can write, for example: val z = List(1, 2, 3, x : _*, 1, 2, 3, x : _*) | |||
| [back to overview] | ||||
| Nikolay edited on 2007-01-08 22:57:17.0 |
| contribution #277 |
| Martin edited on 2007-01-10 16:47:23.0 |
| I made the code illegal. You now get: error: _*-argument may not appear after other arguments matching a *-parameter Everything else is of limited utility and a nightmare to implement, at least for patterns. |