mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Change the meaning of "if let x = foo()" back to Xcode 6.4 semantics. The compiler
includes a number of QoI things to help people write the correct code. I will commit the testcase for it as the next patch. The bulk of this patch is moving the stdlib, testsuite and validation testsuite to the new syntax. I moved a few uses of "as" patterns back to as? expressions in the stdlib as well. Swift SVN r27959
This commit is contained in:
@@ -25,7 +25,7 @@ protocolias h
|
||||
}
|
||||
func some<S: SequenceType, T where Optional<T> == S.Generator.Element>(xs : S) -> T? {
|
||||
for (mx : T?) in xs {
|
||||
if let x? = mx {
|
||||
if let x = mx {
|
||||
return x
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user