| [#1181] | project: compiler | priority: medium | category: bug | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Nikolay | Martin | fixed | 2007-06-18 08:38:38.0 | |
| subject | [contrib #665] Compiler crash on malformed match expression | |||
| code |
package test;
import scala.collection.immutable.Map
class CompilerTest(val valueList: List[Symbol]) {
def buildMap(map: Map[Symbol, Symbol], keyList: List[Symbol], valueList: List[Symbol]): Map[Symbol, Symbol] = {
(keyList, valueList) match {
case (Nil, Nil) => map
_ => buildMap(map.update(keyList.head, valueList.head), keyList.tail, valueList.tail)
}
}
} |
|||
| what happened | $ scalac test/CompilerTest.scala Exception in thread "main" java.lang.AssertionError: assertion failed: (() => |
|||
| what expected | The compiler should report an error. | |||
| [back to overview] | ||||
| Nikolay edited on 2007-06-18 08:43:32.0 |
| Stephane edited on 2007-06-26 14:58:44.0 |
| reassigned to Martin |
| Martin edited on 2007-07-02 15:44:05.0 |