diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-04-11 15:05:27 +0200 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-04-14 11:50:27 +0200 |
commit | d383f458aa5c53629727c5b6abb5134218471543 (patch) | |
tree | a9cbdf47f7bcdadd50f3c95f25a805db16c47849 /test/files/jvm | |
parent | 98a85ccae54195ee17f4b4aa12c22d018fd43bee (diff) | |
download | scala-d383f458aa5c53629727c5b6abb5134218471543.tar.gz scala-d383f458aa5c53629727c5b6abb5134218471543.tar.bz2 scala-d383f458aa5c53629727c5b6abb5134218471543.zip |
synth PartialFunction in uncurry
due to interaction with the CPS plugin, can't synth PartialFun during typer
(the types don't work out: in PartialFun[T, U @cps[V]], U @cps[V] does not conform to Any, and we can't move the annot from the type arg directly to applyOrElse's result,
since then it won't override anything)
thus, we face the pain of mangling labeldefs again
resetLocalAttrsKeepLabels can't use leaveAlone
don't cast matcherror throw, uncurry gets confused
uncurry: cast selector valdef's rhs to avoid skolem mismatch
NOTE: I'm not happy about this code, but I don't know
how to make the clean way (typedMatchAnonFun) compatible with the CPS plugin
one avenue to explor would be to introduce PartialFunCPS,
which is transformed into a regular PartialFun
when T @cps[U] is turned into ControlContext[T, U]
Diffstat (limited to 'test/files/jvm')
0 files changed, 0 insertions, 0 deletions