swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.58k stars 10.36k forks source link

[SR-2031] Objective-C generics, as properties on Swift classes, carry no runtime type information #44640

Open e2652f27-fdca-469d-a3e9-bf38e5bd1773 opened 8 years ago

e2652f27-fdca-469d-a3e9-bf38e5bd1773 commented 8 years ago
Previous ID SR-2031
Radar None
Original Reporter @jadengeller
Type Bug

Attachment: Download

Environment Xcode 8 beta 2
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug, Runtime | |Assignee | None | |Priority | Medium | md5: ab826ef1c19951fa93c3600962004384

Issue Description:

When the type of a Swift object property is checked in the Objective-C runtime, the type will simply be `@`, lacking the name of the class, if the type is an imported Objective-C generic.

e2652f27-fdca-469d-a3e9-bf38e5bd1773 commented 8 years ago

I think this was fixed. At least, our tests no longer fail when I comment out our workaround. Can somebody confirm the status of this issue?

e2652f27-fdca-469d-a3e9-bf38e5bd1773 commented 8 years ago

Nevermind, I was just running the wrong tests… Any plan to address this?