[SR-12041] KeyPath @dynamicMemberLookup does not compile using implicit self #54477
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
Additional Detail from JIRA
md5: d83ce0bfd15401e94983d491a83ac1fb
Issue Description:
Forum thread: https://forums.swift.org/t/keypath-dynamicmemberlookup-does-not-compile-using-implicit-self/32622
You can't use implicit self when using the dynamicMember Keypath feature. The compiler should permit both `self.str1` and `str1`:
The text was updated successfully, but these errors were encountered: