[SR-8435] Warn if there's code in a function that takes an uninhabited type #50958
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
good first issue
Good for newcomers
Environment
Swift 4.2
Additional Detail from JIRA
md5: 9f25bac15088b532d542ce898612f411
Issue Description:
`f` cannot be called since `Never` is uninhabited. Swift should warn that the code there will never be executed.
The text was updated successfully, but these errors were encountered: