mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ast] [diag] [sil] add note for unreachable function body
This commit is contained in:
@@ -229,6 +229,7 @@ ERROR(guard_body_must_not_fallthrough,none,
|
||||
"'guard' body must not fall through, consider using a 'return' or 'throw'"
|
||||
" to exit the scope", ())
|
||||
WARNING(unreachable_code,none, "will never be executed", ())
|
||||
NOTE(unreachable_code_uninhabited_param_note,none, "the function body will never be executed", ())
|
||||
NOTE(unreachable_code_branch,none,
|
||||
"condition always evaluates to %select{false|true}0", (bool))
|
||||
NOTE(call_to_noreturn_note,none,
|
||||
|
||||
Reference in New Issue
Block a user