mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Make this diagnostic a little nicer in other ways, too: - Highlight the whole attribute (including the at-sign). - Don't hardcode the string "objc". Swift SVN r25999
5 lines
233 B
Swift
5 lines
233 B
Swift
// RUN: %target-build-swift -parse %s -Xfrontend -verify
|
|
// RUN: %target-build-swift -parse -parse-as-library %s -Xfrontend -verify
|
|
|
|
@objc class Foo {} // expected-error {{@objc attribute used without importing module 'Foundation'}}
|