[SR-9679] Spurious "enum element cannot be referenced as an instance member" error #52122
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
good first issue
Good for newcomers
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: 3caa66360ed0b6baa10819c536ffca98
Issue Description:
This results in "Enum element 'default' cannot be referenced as an instance member". But the problem is not in the enum element; it's in the `nil` parameter inside the trailing closure.
This may be related to https://bugs.swift.org/browse/SR-5069. The latter is marked closed, but perhaps it should not be.
The text was updated successfully, but these errors were encountered: