diff options
author | Martin Odersky <odersky@gmail.com> | 2017-02-21 09:28:22 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-02-21 09:28:30 +0100 |
commit | 5f9e569926728e7f591a26729efa7700387aeb22 (patch) | |
tree | 435f8bc107e8def412ce00aef5fbc4d633ac1f53 /tests/pos | |
parent | f467be62da8978e506f58b702b84e74ef7ce09de (diff) | |
download | dotty-5f9e569926728e7f591a26729efa7700387aeb22.tar.gz dotty-5f9e569926728e7f591a26729efa7700387aeb22.tar.bz2 dotty-5f9e569926728e7f591a26729efa7700387aeb22.zip |
Don't inline when errors are detected
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.
Diffstat (limited to 'tests/pos')
0 files changed, 0 insertions, 0 deletions