swiftlang / swift

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

[SR-7585] Possible compiler bug when passing method reference to function #50127

Closed macdrevx closed 6 years ago

macdrevx commented 6 years ago
Previous ID SR-7585
Radar None
Original Reporter @macdrevx
Type Bug
Status Resolved
Resolution Duplicate

Attachment: Download

Environment Xcode 9.3
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 0 | |Component/s | | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: e0bf06946ebc1facd522495ec1b6203a

duplicates:

Issue Description:

Cross-posting from https://github.com/ReactiveX/RxSwift/issues/1640

I initially filed this issue on RxSwift, but given that it only happens when building with Xcode 9.3's default Release build configuration (and not when building with the Debug build config), it seems more likely that it's some kind of compiler issue.

macdrevx commented 6 years ago

Looks like this is a dupe.