Any other situation when implicit type casting works? It would be better if
there is a reference or link.
---Original---
From: "Jens Alfke"<[email protected]>
Date: 2016/8/19 00:27:33
To: "adelzhang"<[email protected]>;
Cc: "swift-users"<[email protected]>;
Subject: Re: [swift-users] Implicitly type conversion ?
On Aug 18, 2016, at 12:18 PM, adelzhang via swift-users <[email protected]>
wrote:
Why swift don't warn the type mismatch? I am woking on Xcode Version 7.3.1.
It??s an implicit type-cast. Any type `X` can always be implicitly converted to
type `X?` (i.e. `Optional<X>`).
??Jens
_______________________________________________
swift-users mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-users