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 2ad16cd commit b98efc4Copy full SHA for b98efc4
compiler/src/dotty/tools/dotc/cc/CaptureOps.scala
@@ -164,7 +164,7 @@ extension (tp: Type)
164
* a by name parameter type, turning the latter into an impure by name parameter type.
165
*/
166
def adaptByNameArgUnderPureFuns(using Context): Type =
167
- if Feature.pureFunsEnabledSomewhere then
+ if adaptUnpickledFunctionTypes && Feature.pureFunsEnabledSomewhere then
168
AnnotatedType(tp,
169
CaptureAnnotation(CaptureSet.universal, boxed = false)(defn.RetainsByNameAnnot))
170
else
0 commit comments