mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This changes the heuristic that we use to detect `CF_OPTIONS`/`NS_OPTIONS` instantiations in C++ language mode. Since libraries sometimes declare custom option types that break the assumptions about the names of such types, this lifts the requirements on the type name. rdar://113524090 rdar://113279214
8 lines
250 B
Swift
8 lines
250 B
Swift
// RUN: %target-typecheck-verify-swift -verify-ignore-unknown -I %S/Inputs -enable-objc-interop -enable-experimental-cxx-interop
|
|
// REQUIRES: objc_interop
|
|
|
|
import CustomNSOptions
|
|
|
|
let flags1: MyControlFlags = []
|
|
let flags2: MyControlFlags = [.first]
|