summaryrefslogtreecommitdiff
path: root/test/files/run/virtpatmat_partial.scala
Commit message (Collapse)AuthorAgeFilesLines
* [vpm] typer synths Function{} for empty-sel matchAdriaan Moors2012-03-201-86/+171
| | | | | | | | | | | | | | | | | typedMatchAnonFun is called from typedFunction when the function's body is a match this is work-in-progres: the compiler currently won't bootstrap under -Yvirtpatmat see also the pending test make sure to use the right context in typeFunction when the body is a Match when typer is set up for type checking a Function, the current owner is the symbol for the function, but we'll type check a Block(List(ClassDef(cd)), New(cd)) when the function is a match, and the function symbol is nowhere to be found, so go to outer context in patmatvirt: - simplified default case gen (no need for a Casegen instance) - using CASE | SYNTHETIC to detect generated matches (for switches) and avoid typing them endlessly more uniform, and necessary for new-style anon Function class instance gen for matches
* [vpm] generate proper isDefinedAt for switchesAdriaan Moors2012-02-171-0/+23
| | | | don't consider the matcherror-throwing catch-all case (generated by virtpatmat) a default case
* Begone t1737...Hubert Plociniczak2011-11-021-1/+1
|
* virtpatmat, hidden behind -YvirtpatmatAdriaan Moors2011-10-201-0/+73
at least one imminent TODO: undo hardwired generation of if/then/else, and decide based on type whether to call flatMap/orElse or inline those methods from Option review by extempore