[SR-13195] Global func is not resolved because of the class method with the same name #55635
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
Attachment: Download
Environment
Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53).
Additional Detail from JIRA
md5: 29a72d15212444c69ff4be88473098f4
Issue Description:
The following code doesn't build:
The parser gets confused by the class method and doesn't even try to resolve the global function.
If I remove the method, the function it's resolved correctly.
If I move the function inside the class, it's resolved correctly.
The text was updated successfully, but these errors were encountered: