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
Xcode 8.3.3 - Xcode 9
md5: 60e185a14e55cd47c86630bf1fa588d5
Issue Description:
The following code crashes always:
extension Optional { // where Wrapped == ()->() { // With this, no crash var method: Bool { return false } } class bar { var t: Bool = false { didSet { self.stuff(closure: { print("\(self)") }) } } func stuff(closure: (() -> ())? = nil) { closure.method } } bar().t = false
The text was updated successfully, but these errors were encountered:
On near-master:
Assertion failed: (isPlusOne(SGF) && "Can not forward borrowed RValues"), function forwardInto, file /Volumes/Data/swift-public/swift/lib/SILGen/RValue.cpp, line 533. 1. While emitting SIL for 'stuff(closure:)' at <stdin>:12:6
@jckarter? Or @gottesmm, for ownership?
Sorry, something went wrong.
This would be on me, but before we get to that mikekasp (JIRA User) are you using the actual toolchain in Xcode? Or are you using a custom toolchain?
The reason why I am asking is that I thought that assertion was not enabled in the actual Xcode toolchain.
Comment by Mike Kasperlik (JIRA)
Using the standard toolchain. Nothing custom.
Oh. I misunderstood. The assert is from a near master build by Jordan. Sorry for the noise!
@swift-ci sync
No branches or pull requests
Environment
Xcode 8.3.3 - Xcode 9
Additional Detail from JIRA
md5: 60e185a14e55cd47c86630bf1fa588d5
Issue Description:
The following code crashes always:
The text was updated successfully, but these errors were encountered: