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
That's a fair point, I didn't try that. Sounds like a proper workaround.
Though the issue still holds, IMO. There is no reason why you shouldn't be able to declare an open class within a public extension?
So Why? is this disallowed?
brentdax (JIRA User) I'm also confused as to why the warning exists. If spelling out the public explicitly doesn't make a semantic difference, then why is there a warning when you spell it out explicitly and no warning if you don't?
Environment
Xcode 11, Swift 5.1
Additional Detail from JIRA
md5: 6029cb805a9876344a379ec962bbd1dc
Issue Description:
When (ab)using an enum for namespacing purposes, one often wants to declare things in extensions, like so:
But this results in an unfortunate:
There are hacks to workaround that, but in this particular case (`open` class within `public` enum) I think the compiler shouldn't emit a warning.
The text was updated successfully, but these errors were encountered: