Skip to content

Commit

Permalink
Eval under a refined binding should reflect refinements
Browse files Browse the repository at this point in the history
Fixes #6017
  • Loading branch information
headius committed Feb 12, 2020
1 parent 6670a40 commit 28dd5d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ private static InterpreterContext prepareIC(ThreadContext context, DynamicScope
IREvalScript script = new IREvalScript(runtime.getIRManager(), containingIRScope, file, lineNumber, staticScope, evalType);

// enable refinements if incoming scope already has an overlay active
if (staticScope.getOverlayModuleForRead() != null) {
if (staticScope.getOverlayModuleForRead() != null || staticScope.getIRScope().maybeUsingRefinements()) {
script.setIsMaybeUsingRefinements();
}

Expand Down

0 comments on commit 28dd5d2

Please sign in to comment.