summaryrefslogtreecommitdiff
path: root/test/files/pos/t1832.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-1832 consistent symbols in casedef's pattern&bodyAdriaan Moors2012-07-201-0/+8
the only change to typedBind in this commit (beyond refactoring to keep my eyes from bleeding), is explained by the added comment: have to imperatively set the symbol for this bind to keep it in sync with the symbols used in the body of a case when type checking a case we imperatively update the symbols in the body of the case those symbols are bound by the symbols in the Binds in the pattern of the case, so, if we set the symbols in the case body, but not in the patterns, then re-type check the casedef (for a second try in typedApply for example -- SI-1832), we are no longer in sync: the body has symbols set that do not appear in the patterns since body1 is not necessarily equal to body, we must return a copied tree, but we must still mutate the original bind