[SR-9575] Compiler ignores global function to view error message in some situations. #52022
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
type checker
Area → compiler: Semantic analysis
Environment
OS: macOS Mojave 10.14.2
Swift: 4.2.1, DEVELOPMENT-SNAPSHOT-2018-12-24-a
Additional Detail from JIRA
md5: 9cd4d9374d7d69c611b5739c793e91a6
duplicates:
Issue Description:
Compiler views two error messages when the following code is compiled.
As we expect, the first error message indicates the ambiguity between the global function and the instance method, and its notes imply how to fix the code.
However, the second one doesn't. It would be better to use the same message with the first.
[Sample Code]
The text was updated successfully, but these errors were encountered: