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:
Chris Lattner
2015-04-30 04:38:13 +00:00
parent 62ad8b2dd6
commit 31c01eab73
102 changed files with 524 additions and 538 deletions

View File

@@ -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
}
}