[SR-2777] Diagnostics missing when method name shadows a global function with a different signature. #45381
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: 05b9c4dc28e7d3ab36b0e43e17bdbc8b
relates to:
Issue Description:
This is a problem that I've hit in practice multiple times. I have two functions with the same base name but different signatures--so effectively their names are different. One of the functions is generic. I'm unable to invoke the intended function. In this trivial test case, the compiler reports and invalid error. However, I've run into other scenarios where the compiler silently miscompiles the code.
The text was updated successfully, but these errors were encountered: