[SR-485] C macros of the form ((long long)-1) should be imported #43102
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
c/c++ macros
c interop
Feature: Interoperability with C
compiler
The Swift compiler itself
Environment
Apple Swift version 2.1.1 (swiftlang-700.1.101.15 clang-700.1.81)
Target: x86_64-apple-darwin15.2.0
Additional Detail from JIRA
md5: 4f56b5e5a3db09cb27d77f8e3f9984fc
relates to:
Issue Description:
It turns out that
NSURLResponseUnknownLength
isn't exposed to Swift because the macro definition doesn't match Swift's rules for importable macros. The definition is:This looks relatively straightforward, and should be simple enough that Swift can support. In general, any macro whose definition is the form
((SomeType)literal)
should be importable.The text was updated successfully, but these errors were encountered: