summaryrefslogtreecommitdiff
path: root/test/files/pos/t6514.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-6514 Avoid spurious dead code warningsJason Zaugg2013-02-101-0/+11
`deadCode.expr` stores the method symbol most recently encountered in `handleMonomorphicCall`, and uses this to avoid warnings for arguments to label jumps and `Object#synchronized` (which sneakily acts by-name without advertising the fact in its type.) But this scheme was insufficient if the argument itself contains another method call, such as `matchEnd(throw e(""))`. This commit changes the single slot to a stack, and also grants exemption to `LabelDef` trees. They were incorrectly flagged in the enclosed test case after I made the the first change.