[SR-6393] Warn on unused arguments #48943
Labels
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
feature
A feature request or implementation
function parameters
Feature → declarations: function parameters
name shadowing
Feature: name shadowing
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: ab9c9678ab456e51ea80f9ae9d159a46
duplicates:
Issue Description:
We warn when local
let
orvar
variables go unused, but not when function or closure arguments are unused. An intentionally-unused argument can be annotated by being given the binding name_
.The text was updated successfully, but these errors were encountered: