[SR-7217] Protocol composition with conflicting typealiases does not diagnose #49765
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: c5f27b0f94d34e042696e3afc9cf3681
relates to:
Issue Description:
From discussion in https://forums.swift.org/t/decode-a-json-object-of-unknown-format-into-a-dictionary-with-decodable-in-swift-4/6138/38, the following typealias conflict produces no diagnostics in Swift 4.1:
Code completion shows two overloads for
P3.T
andP4.T
but there are no warnings or complaints otherwise. The ordering of the composition makes no difference on which type "wins out".The text was updated successfully, but these errors were encountered: