Closed
Description
Previous ID | SR-6018 |
Radar | None |
Original Reporter | @spevans |
Type | Bug |
Status | Closed |
Resolution | Done |
Environment
macOS 10.12.6
Xcode 9 with Swift Development Snapshot 2017-09-26
Additional Detail from JIRA
Votes | 0 |
Component/s | Foundation |
Labels | Bug |
Assignee | @phausler |
Priority | Medium |
md5: 541219d02ca30f1d927daa58ac07ab89
Issue Description:
When compiling the swift-corelibs-foundation tests on macOS / Xcode the swift compiler gives the following error:
/Users/spse/src/swift/swift-corelibs-foundation/TestFoundation/TestHTTPCookieStorage.swift:264:20: error: 'ObjCBool' is ambiguous for type lookup in this context
var isDir: ObjCBool = false
^~~~~~~~
SwiftFoundation.ObjCBool:6:15: note: found this candidate
public struct ObjCBool : ExpressibleByBooleanLiteral {
^
ObjectiveC.ObjCBool:6:15: note: found this candidate
public struct ObjCBool : ExpressibleByBooleanLiteral {
The definition of ObjCBool
was recently changed in #1223 from a simple Bool
to be the same as the definition used by swift in stdlib/public/SDK/ObjectiveC/ObjectiveC.swift
This compiles and runs correctly on Linux using the laster master version of swift.
On macOS I used the Swift Development Snapshot 2017-09-26
and saw this issue.
To replicate:
Checkout both swift-corelibs-foundation and swift-corelibs-xctest
open swift-corelibs-foundation/Foundation.xcworkspace
Select the TestFoundation
scheme and build it.