mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This prevents us from seeing a less useful error message from SILGen further down the line. Also fix a bug where @objc without importing Foundation was not diagnosed after the first top-level form. Some tests were relying on this behavior, so fix those tests, either by splitting off the objc parts of the test, or just by passing the -disable-objc-attr-requires-foundation-module flag. Fixes <rdar://problem/20660270>. Swift SVN r29359
8 lines
294 B
Swift
8 lines
294 B
Swift
// RUN: %target-build-swift -parse %s -Xfrontend -verify
|
|
// RUN: %target-build-swift -parse -parse-as-library %s -Xfrontend -verify
|
|
// REQUIRES: executable_test
|
|
|
|
class Oof {
|
|
dynamic func impliesObjC() { } // expected-error {{'dynamic' attribute used without importing module 'Foundation'}}
|
|
}
|