mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Also removed the sdk 'feature' in favour of the more specific objc_interop. Swift SVN r24856
18 lines
494 B
Swift
18 lines
494 B
Swift
// RUN: %target-parse-verify-swift %clang-importer-sdk
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import Darwin
|
|
|
|
let _: Fract? = nil // expected-error{{use of undeclared type 'Fract'}}
|
|
let _: Darwin.Fract? = nil // okay
|
|
|
|
let _: OSErr = 0
|
|
let _: OSStatus = noErr // noErr is from the overlay
|
|
let _: UniChar = 0
|
|
|
|
let _ = ProcessSerialNumber()
|
|
|
|
let _: Byte = 0 // expected-error {{use of undeclared type 'Byte'}}
|
|
Darwin.fakeAPIUsingByteInDarwin() as Int // expected-error {{'UInt8' is not convertible to 'Int'}}
|