Files
swift-mirror/test/Sema/objc_attr_requires_module_2.swift
2018-05-07 14:43:04 -04:00

7 lines
291 B
Swift

// RUN: %target-swift-frontend -typecheck -verify -enable-objc-interop %s
class Foo {}
_ = Foo()
@objc class NSFoo {} // expected-error {{@objc attribute used without importing module 'Foundation'}} expected-error {{only classes that inherit from NSObject can be declared @objc}} {{1-7=}}