| [#924] | project: compiler | priority: low | category: bug | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Sean | Martin | fixed | 2007-01-29 12:23:47.0 | |
| subject | positions off in patterns | |||
| code |
trait Test {
case class Foo(inside : Object);
def foo(that : Any) = that match {
case foo @ Foo(_) => foo;
}
} |
|||
| what happened | The position of "foo" in "case foo @ Foo(_)" is placed at the "@", not where foo actually is. |
|||
| what expected | The position of foo should match its location in the source code, which is case for "case foo : Foo". | |||
| [back to overview] | ||||
| Martin edited on 2007-01-29 17:45:19.0 |