-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix #1605: don't inline methods that have errors #1607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
nice title. |
It inlined it ;) |
9fff5e9
to
678f2b7
Compare
I think I would put the check at the place where we call |
50b99e4
to
f0cfb25
Compare
@smarter - done |
f0cfb25
to
5176b04
Compare
@@ -191,7 +191,9 @@ object Inliner { | |||
sym.updateAnnotation(LazyBodyAnnotation { _ => | |||
implicit val ctx: Context = inlineCtx | |||
val tree1 = treeExpr(ctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better use reporter.errorCount
5176b04
to
1fec582
Compare
@@ -190,8 +190,7 @@ object Inliner { | |||
val inlineCtx = ctx | |||
sym.updateAnnotation(LazyBodyAnnotation { _ => | |||
implicit val ctx: Context = inlineCtx | |||
val tree1 = treeExpr(ctx) | |||
makeInlineable(tree1) | |||
ctx.withNoError(treeExpr(ctx))(makeInlineable) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@odersky - updated with your suggestion
LGTM |
Review: @smarter