diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-04-24 15:59:58 +0200 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-04-24 17:43:32 +0200 |
commit | 2890714d7bcdd55b7a62091dcdf031cc3efe0822 (patch) | |
tree | 8b541f1633a4ec36b5a5e52f1a0f7bf0c2266448 /lib/ant/maven-ant-tasks-2.1.1.jar.desired.sha1 | |
parent | d9740f82a3aea3b223233776cd7c9460a2e4dfc3 (diff) | |
download | scala-2890714d7bcdd55b7a62091dcdf031cc3efe0822.tar.gz scala-2890714d7bcdd55b7a62091dcdf031cc3efe0822.tar.bz2 scala-2890714d7bcdd55b7a62091dcdf031cc3efe0822.zip |
generate well-formed patterns in parser
val pattern: Type = expr desugared to
val x = expr match { case pattern: Type => (var_1, ..., var_N)}
but `pattern: Type` is only a valid pattern if `pattern` is an Ident
thus, we desugar to
val x = (expr: Type) match { case pattern => (var_1, ..., var_N)}
... in this case (see def makePatDef)
also, MaybeBoundType now fails on illegal patterns (to defend against similar regressions)
Diffstat (limited to 'lib/ant/maven-ant-tasks-2.1.1.jar.desired.sha1')
0 files changed, 0 insertions, 0 deletions