[SR-12925] Property Name Collision handled incorrectly #55371
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
Xcode 11.3.1
Swift: 5.1
Additional Detail from JIRA
md5: 3c162fdb3f570c4a80ac0ec03f3118da
Issue Description:
1. We have defined a Protocol:
2. Added a Protocol extension with default empty value
Even though the Type [String: Any] and [String: Any]? are different, the compiler doesn't throw any error.
The text was updated successfully, but these errors were encountered: