[SR-15691] Invalid warning: 'self' refers to the method 'Foo.self' #57970
Labels
backticked identifiers
Feature → identifiers: Backticked identifiers. Allows using reserved words as identifiers
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
enum cases
Feature → enums: Enum cases
enum
Feature → type declarations: Swift enumeration declarations
expressions
Feature: expressions
identifiers
Feature: Identifiers
self
Feature → expressions: The 'self' expression
swift 5.6
type checker
Area → compiler: Semantic analysis
unexpected warning
Bug: Unexpected warning
Additional Detail from JIRA
md5: 92266992a8216159c3017c1eaba44660
Issue Description:
With this code and Swift 5.5, it compiled fine:
With the 2021-12-23 main snapshot (org.swift.50202112231a) compiling gives an seemingly impossible to silence warning, here are the variations I tried:
I believe this might have been introduced as the fix for #47136 here 7e0a7f3
cc jackmarch (JIRA User)
The text was updated successfully, but these errors were encountered: