[swift-evolution] Casting Bug Swift

Radosław Pietruszewski radexpl at gmail.com
Thu Feb 25 10:53:27 CST 2016


Hey James,

The appropriate place for compiler bugs is https://bugs.swift.org <https://bugs.swift.org/>, not Swift Evolution.

Best,
— Radek

> On 25 Feb 2016, at 17:44, James Campbell via swift-evolution <swift-evolution at swift.org> wrote:
> 
> Say I have been passed an array of objects that conform to a protocol called "Eatable" i.e [Eatable]
> 
> If I then try to cast them to an array of classes who happen to implement that protocol i.e [Burger]
> 
> The compiler lets me but in the runtime it corrupts the memory.
> ___________________________________
> 
> James⎥iOS Lead
> 
> james at supmenow.com <mailto:james at supmenow.com>⎥supmenow.com <http://supmenow.com/>
> Sup
> 
> Runway East
> 
> 
> 10 Finsbury Square
> 
> London
> 
> 
> EC2A 1AF 
> 
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160225/cb387d0a/attachment.html>


More information about the swift-evolution mailing list