We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4aa9ac commit a6578f8Copy full SHA for a6578f8
compiler/src/dotty/tools/dotc/transform/init/Summarization.scala
@@ -146,9 +146,8 @@ object Summarization {
146
// Summary.empty
147
148
case Return(expr, from) =>
149
- // TODO: return potential to the method
150
val (pots, effs) = analyze(expr)
151
- (Potentials.empty, effs)
+ (Potentials.empty, effs ++ pots.promote(expr))
152
153
case WhileDo(cond, body) =>
154
// for lazy fields, the translation may result im `while (<empty>)`
0 commit comments