SE-409: Access-level modifiers on import declarations says that @usablefromInline can be used on import statements, but the Swift 6 compiler (swiftlang-6.0.0.3.300 clang-1600.0.20.10) disagrees:
3 | @usableFromInline internal import Foundation
| `- error: '@usableFromInline' attribute cannot be applied to this declaration
???
2 Likes
xymus
(Alexis Laferrière)
2
We didn't get to implement that part of the proposal in time for the Swift 6 compiler version. I'll look to identify it as such in the document.
1 Like