aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/i2006.scala
Commit message (Collapse)AuthorAgeFilesLines
* Don't inline when errors are detectedMartin Odersky2017-02-211-0/+10
Inlining is only well-defined if the body to inline does not have any errors. We therefore check for errors before we perform any transformation of trees related to inlining. The error check is global, i.e. we stop on any error not just on errors in the code to be inlined. This is a safe approximation, of course.