You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
swift-ci opened this issue
Jan 3, 2016
· 2 comments
· Fixed by #59535
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselffeatureA feature request or implementation
It was discussed here. I think it's mandatory to support casting here and should not be a language limitation. I really like structs in swift but it is very hard to implement sth. like a hierarchy of structs cause they can't inherit from each other and it's hard to work with protocols as you see above.
Does anyone feels similar ?
The text was updated successfully, but these errors were encountered:
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselffeatureA feature request or implementation
Additional Detail from JIRA
md5: 973efe727beed10b6f2ae35767f6d7b6
Issue Description:
I don't like the way how Swift handles structs which implements protocols:
Simple demonstration:
It was discussed here. I think it's mandatory to support casting here and should not be a language limitation. I really like structs in swift but it is very hard to implement sth. like a hierarchy of structs cause they can't inherit from each other and it's hard to work with protocols as you see above.
Does anyone feels similar ?
The text was updated successfully, but these errors were encountered: