On Xcode 7b2 with Swift 2 code, I have following:
In a switch case the compiler returns the following warning :
Default will never be executed The code :
switch(type) { case .foo: return "foo" case .bar: return "bar" case .baz: return "baz" default: return "?" } Why would there be a warning ?