Files
swift-mirror/test/Sema/dynamic_attr_requires_module.swift
2018-06-25 01:02:20 -07:00

9 lines
396 B
Swift

// RUN: %target-swift-frontend -typecheck -verify -enable-objc-interop %s
// RUN: %target-swift-frontend -typecheck -verify -enable-objc-interop %s -parse-as-library
class Oof {
@objc dynamic func impliesObjC() { }
// expected-error@-1 {{'dynamic' attribute used without importing module 'Foundation'}}
// expected-error@-2 {{@objc attribute used without importing module 'Foundation'}}
}