[SR-10076] [Swift 5] Generic parameter cannot get correct type with generic override constraint #52478
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
regression
standard library
Area: Standard library umbrella
swift 5.0
Environment
Error is reproduced with macOS 10.14.3 with Xcode 10.2 beta 4 (Swift 5) and does not happen with Xcode 10.1 (Swift 4.2)
Additional Detail from JIRA
md5: fc407436e0f058c43c437612c34564ad
duplicates:
Issue Description:
In Swift 5, when we override a method that takes in a generic constraint that adds on another generic constraint, when we call the methods from subclass objects with superclass type. An example snippet is provided below to show this behaviour.
I was able to reproduce this with the latest Swift 5 beta from Xcode 10.2 beta 4. This behaviour does not happen in Swift 4.
The text was updated successfully, but these errors were encountered: