`@usableFromInline` not supported on imports in Swift 6

SE-409: Access-level modifiers on import declarations says that @usablefromInline can be used on import statements, but the Swift 6 compiler (swiftlang- clang-1600.0.20.10) disagrees:

3 | @usableFromInline internal import Foundation
  | `- error: '@usableFromInline' attribute cannot be applied to this declaration



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