[Accepted] SE-0075: Adding a Build Configuration Import Test

Proposal link: swift-evolution/0075-import-test.md at master · apple/swift-evolution · GitHub

Hello Swift Community,

The review of SE-0075: "Adding a Build Configuration Import Test" ran from May 10…16, 2016. The proposal is *accepted* for Swift 3.

The community and core team are both very positive about adding this functionality. It is precedented by the __has_include feature in Clang, and may have applicability allowing “conditionally available” features for SwiftPM modules in the future. The core team spent a significant amount of time discussing the proper naming for this, and came to agree that “canImport” (as proposed) is the best name for this conditional.

Thank you to Erica Sadun proposing this! I filed SR-1560 to track implementation of this feature, this is a great starter bug for someone who wants to get involved in the compiler.

-Chris Lattner
Review Manager