Possible bug in predicting Swift 6 errors related to default values

Xcode 16.2 Playground, Swift 5 predicts error in Swift 6 mode:


Xcode 16.2 Playground, Swift 6 mode finds complained code perferct:

For some reason, in Swift 5, “minimal” and “targeted” concurrency levels treat default values as being evaluated without isolation, while Swift 6 (and iirc Swift 5 with a concurrency level of “complete”) treats default values as being evaluated on the same isolation as the function itself.

1 Like