[SR-9845] Regression when referencing protocol initializer from protocol-composed type #52256
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
regression
swift 5.0
type checker
Area → compiler: Semantic analysis
Environment
macOS Mojave 10.14.2 (18C54)
Xcode 10.2 beta (10P82s)
Additional Detail from JIRA
md5: cfe46c4dada7d74091fb90f0f8883a04
Issue Description:
The following snippet succeeds on Xcode 10.1, but fails on the latest Xcode 10.2 beta (10P82s):
My guess is that the type resolver picks the initializer with the default argument
and ends up ignoring the protocol-defined initializer.
The text was updated successfully, but these errors were encountered: