summaryrefslogtreecommitdiff
path: root/test/files/run/t6555.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-6555 Better parameter name retentionJason Zaugg2012-12-081-0/+15
We were losing track of parameter names in two places: 1. Uncurry was using fresh names for the apply method parameters during Function expansion. (The parameter names in the tree were actually correct, they just had synthetic symbols with "x$1" etc.) 2. When adding specialized overrides, the parameter names of the overriden method were used, rather than the parameter names from the overriding method in the class to which we are adding methods. The upshot of this is that when you're stopped in the debugger in the body of, say, `(i: Int) => i * i`, you see `v1` rather than `i`. This commit changes Uncurry and SpecializeTypes to remedy this.