Skip to content

Commit b98efc4

Browse files
committed
Drop another impure function adaptation
This was overlooked before.
1 parent 2ad16cd commit b98efc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/cc/CaptureOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ extension (tp: Type)
164164
* a by name parameter type, turning the latter into an impure by name parameter type.
165165
*/
166166
def adaptByNameArgUnderPureFuns(using Context): Type =
167-
if Feature.pureFunsEnabledSomewhere then
167+
if adaptUnpickledFunctionTypes && Feature.pureFunsEnabledSomewhere then
168168
AnnotatedType(tp,
169169
CaptureAnnotation(CaptureSet.universal, boxed = false)(defn.RetainsByNameAnnot))
170170
else

0 commit comments

Comments
 (0)