We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
md5: 59fda595e0dd7887bcc9432030a94a33
relates to:
Issue Description:
Example code. The "nope" line below errors that the body of a guard cannot fall through.
protocol P { static var theThing: Self { get } } extension Never : P { static var theThing: Never { return fatalError() } } func test<T: P>(_ type: T.Type) -> T { return type.theThing } func f(i: Int?) { guard i != nil else { Never.theThing } // ok guard i != nil else { test(Never.self) } // nope! }
The text was updated successfully, but these errors were encountered:
cc @slavapestov
Sorry, something went wrong.
Slava mentioned on twitter that he has a fix in process for this, related to SR-2729
#17019
No branches or pull requests
Additional Detail from JIRA
md5: 59fda595e0dd7887bcc9432030a94a33
relates to:
Issue Description:
Example code. The "nope" line below errors that the body of a guard cannot fall through.
The text was updated successfully, but these errors were encountered: