mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
16 lines
503 B
Swift
16 lines
503 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: not %target-swiftxx-frontend -emit-module -o %t/FortyTwo.swiftmodule -I %S/Inputs %s 2>&1 | %FileCheck %s
|
|
|
|
// This test checks that forward declarations are not considered
|
|
// when determining the visibility of the decl.
|
|
|
|
@_implementationOnly import UserA
|
|
import UserC
|
|
|
|
@_inlineable
|
|
public func createAWrapper() {
|
|
let _ = MagicWrapper()
|
|
}
|
|
|
|
// CHECK: struct 'MagicWrapper' cannot be used in an '@inlinable' function because 'Helper' was imported implementation-only
|