swiftlang/swift

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

Open

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

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)Swift (69,989 star) (10,719 fork)batch import
bugcompilerdiagnostics qualitygood first issue

描述

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.

贡献者指南