swiftlang/swift

[SR-4259] Request: fixit for import module casing

开放

#46,842 创建于 2017年3月16日

 (3 条评论) (0 个反应) (0 位负责人)Swift (10,719 个派生)batch import
bugcompilerdiagnostics qualitygood first issue

仓库指标

星标
 (69,989 个星标)
PR 合并指标
 (平均合并 8天 17小时) (30 天内合并 510 个 PR)

描述

Previous ID SR-4259
Radar None
Original Reporter @NachoSoto
Type Bug

Swift version 3.0.2 (swiftlang-800.0.63 clang-800.0.42.1)

Votes 0
Component/s Compiler
Labels Bug, DiagnosticsQoI, StarterBug
Assignee None
Priority Medium

md5: 24348ceb701412a7d44fffc88ff4e8c8

relates to:

  • SR-9554 Improve diagnostic for naming a project after a system framework, case-insensitively

Issue Description:

`import UIKIt` (notice the capital I) fails with the error: "Cannot load module 'UIKit' as 'UIKIt'".

Expected behavior: it produces a fixit to correct this. I almost couldn't see what was wrong, since i and I are so similar.

贡献者指南