swiftlang/swift
[SR-8147] Fixit corrects .eventTrackingRunLoopMode to .RunLoop.Mode.eventTracking with invalid leading period
开放
#50,679 创建于 2018年6月29日
bugcompilerdiagnostics qualitygood first issue
仓库指标
- 星标
- (69,989 个星标)
- PR 合并指标
- (平均合并 8天 17小时) (30 天内合并 510 个 PR)
描述
| Previous ID | SR-8147 |
| Radar | rdar://problem/41545427 |
| Original Reporter | @jckarter |
| Type | Bug |
Attachment: Download
| Votes | 0 |
| Component/s | Compiler |
| Labels | Bug, DiagnosticsQoI, StarterBug |
| Assignee | None |
| Priority | Medium |
md5: 8dc18aea989964e226ca7f5bd1d9df9f
Issue Description:
Compiling the following code emits a fixit to change ‘.eventTrackingRunLoopMode’ to ‘.RunLoop.Mode.eventTracking’ with a leading period which does not compile since the type is fully specified already.
import AppKit
func foo(timer: Timer) {
RunLoop.current.add(timer, forMode: .eventTrackingRunLoopMode)
}