swiftlang / swift

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

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

Open NachoSoto opened 7 years ago

NachoSoto commented 7 years ago
Previous ID SR-4259
Radar None
Original Reporter @NachoSoto
Type Bug
Environment Swift version 3.0.2 (swiftlang-800.0.63 clang-800.0.42.1)
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug, DiagnosticsQoI, StarterBug | |Assignee | None | |Priority | Medium | md5: 24348ceb701412a7d44fffc88ff4e8c8

relates to:

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.

swift-ci commented 7 years ago

Comment by Matthew Spear (JIRA)

Still trying out starter bugs and getting a feel for OS - will give it an attempt and release the issue / ask for help if I can't manage it!

keith commented 6 years ago

I've submitted a fix-it for this case here https://github.com/apple/swift/pull/18308

belkadan commented 5 years ago

Oops, looks like we didn't get this reviewed at the time and @keith went to work on other things. If anyone wants to pick it up, feel free!