| [#203] | project: compiler | priority: medium | category: bug | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Vincent | Burak | fixed | 2003-10-20 15:46:12.0 | |
| subject | unexpected pattern | |||
| code |
object Test {
trait T;
case class C() extends T;
def f(x: T) = x match {
case y @ C => ()
}
}
|
|||
| what happened | At compile time:
Exception in thread "main" scalac.ApplicationError: Unexpected pattern Test.C
at scalac.ast.TreeInfo.isSequenceValued(TreeInfo.java:228)
at scalac.ast.TreeInfo.isSequenceValued(TreeInfo.java:201)
at scalac.typechecker.Analyzer.transform(Analyzer.java:1997)
|
|||
| what expected | A compiler error instead of a compiler crash. | |||
| [back to overview] | ||||
| Burak edited on 2003-10-29 15:39:34.0 |
| forgot to handle Select case in isSequenceValued. Now returns false, leading to error message (missing arguments...) |