Internal imports by default is very problematic for generated code

Oh! I must have misremembered that detail from an earlier version of the proposal. I just tried it and it definitely already works with the Swift 6.4 compiler:

@diagnose(UnusedImportAccess, as: ignored)
public import Foundation // no warning

So, problem solved thanks to SE-0522?

8 Likes