mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
And enforce it especially in downstream contexts such as building interfaces of SDK dependencies, where the remarks are not actionable by the user.
16 lines
767 B
Swift
16 lines
767 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -emit-module -emit-module-path %t/OtherActors.swiftmodule -module-name OtherActors %S/../Concurrency/Inputs/OtherActors.swift -disable-availability-checking
|
|
|
|
// RUN: not %target-swift-frontend -typecheck -I %t %s 2>&1 | %FileCheck -check-prefix=DEFAULT %s
|
|
// RUN: not %target-swift-frontend -typecheck -I %t %s -suppress-remarks 2>&1 | %FileCheck -check-prefix=NOREMARK %s
|
|
|
|
@preconcurrency import OtherActors
|
|
// DEFAULT: error: cannot find 'xyz' in scope
|
|
// DEFAULT: remark: '@preconcurrency' attribute on module 'OtherActors' is unused
|
|
// NORMEARK: error: cannot find 'xyz' in scope
|
|
// NOREMARK-NOT: remark: '@preconcurrency' attribute on module 'OtherActors' is unused
|
|
|
|
func bar() {
|
|
xyz
|
|
}
|