[SR-10457] Xcode 10.2/Swift 5.0 init() behavior change => Unexpected type initialized at runtime. #52857
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Attachment: Download
Environment
Xcode 10.2/Swift 5.0 Playground
Additional Detail from JIRA
md5: 1e9f0e77208018daa081e47835493bb7
duplicates:
Issue Description:
In a nutshell, Xcode 10.2/Swift 5.0 playground initializes the base type at runtime. Adding @objc to the protocol returns the expected subtype at runtime. Xcode 10.1/Swift 4.2.1 returns the subtype at runtime with/without @objc.
Possibly relates to/duplicates: https://bugs.swift.org/browse/SR-10338 and https://bugs.swift.org/browse/SR-10285.
Attached playground.
Trial runs using varios versions of Xcode/Swift and code below:
The text was updated successfully, but these errors were encountered: