c argument names in bindings
This commit is contained in:
@@ -758,7 +758,7 @@ validate_declarations :: proc(checker: ^Checker) {
|
||||
"void is only valid as a function result type",
|
||||
)
|
||||
}
|
||||
if contains_name(locals[:], param.name) {
|
||||
if param.name != checker.sink_symbol && contains_name(locals[:], param.name) {
|
||||
source.addf(
|
||||
checker.diagnostics,
|
||||
param.span,
|
||||
|
||||
Reference in New Issue
Block a user