-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
compilerThe Swift compiler itselfThe Swift compiler itselfgood first issueGood for newcomersGood for newcomersimprovement
Description
Previous ID | SR-11295 |
Radar | None |
Original Reporter | cukier (JIRA User) |
Type | Improvement |
Additional Detail from JIRA
Votes | 0 |
Component/s | Compiler |
Labels | Improvement, StarterBug |
Assignee | None |
Priority | Medium |
md5: 134fdcf76ae60512bbc5e443ad8390d7
Issue Description:
Swift should warn you if you're performing a cast to a type that the thing is already
let a = "Hello"
_ = a as String
I would expect something like "casting expression to `String` doesn't change the type" with a fixit of removing "as String"
Metadata
Metadata
Assignees
Labels
compilerThe Swift compiler itselfThe Swift compiler itselfgood first issueGood for newcomersGood for newcomersimprovement