mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
For executable targets or private libraries, using SPI_AVAILABLE symbols should be allowed. rdar://91088241
9 lines
317 B
Swift
9 lines
317 B
Swift
// REQUIRES: OS=macosx
|
|
// RUN: %target-swift-frontend -typecheck %s -F %S/Inputs/frameworks -verify -library-level api
|
|
|
|
import SPIContainerImporter
|
|
|
|
@_spi(a) public let a: SPIInterface1
|
|
|
|
public let c: SPIInterface1 // expected-error{{cannot use class 'SPIInterface1' here; it is an SPI imported from 'SPIContainer'}}
|