[SR-13514] @dynamicMemberLookup does not satisfy protocol requirements #55950
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
Environment
Xcode 11.7 (11E801a) on macOS 10.15.6 (19G2021)
Additional Detail from JIRA
md5: 4efb4cc2f38a497fd03f6aeefcc6aeb2
cloned to:
Issue Description:
Given this:
I would expect that I could do
extension RawModelController: ModelValue {
} and have it "just work", because the@dynamicMemberLookup
subscript will satisfy all of the requirements of the protocol.Instead, the compiler produces an error.
The text was updated successfully, but these errors were encountered: