mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
If this isn’t fatal, this will just end up cascading to a bunch of “could not find member … in …” errors, which hides the real issue.
4 lines
162 B
Swift
4 lines
162 B
Swift
// RUN: %target-swift-frontend -typecheck -verify %s
|
|
|
|
@testable func foo() {} // expected-error {{@testable may only be used on 'import' declarations}} {{1-11=}}
|