[swift-evolution] [Discussion] Enum Leading Dot Prefixes

Joe Groff jgroff at apple.com
Fri Feb 12 12:29:53 CST 2016


> On Feb 12, 2016, at 10:24 AM, David Waite via swift-evolution <swift-evolution at swift.org> wrote:
> 
> I think you may have misunderstood - I’m asking if we can make your switch example into legal code :-)
> 
> var point = CGPoint.zero
> 
> switch point {
> case .zero: // Error: Enum case 'zero' not found in type 'CGPoint'

That's a bug.

-Joe

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


More information about the swift-evolution mailing list