mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Reinstante var bindings in refutable patterns, except function parameters.
This reverts commits:b96e06da44,8f2fbdc93a,93b6962478,64024118f4,a759ca9141,3434f9642b,9f33429891,47c043e8a6. This commit leaves 'var' on function parameters as a warning to be merged into Swift 2.2. For Swift 3, this will be an error, to be converted in a follow-up.
This commit is contained in:
@@ -696,7 +696,6 @@ public func transcode<
|
||||
_ input: Input, _ output: (OutputEncoding.CodeUnit) -> Void,
|
||||
stopOnError: Bool
|
||||
) -> Bool {
|
||||
|
||||
var input = input
|
||||
|
||||
// NB. It is not possible to optimize this routine to a memcpy if
|
||||
|
||||
Reference in New Issue
Block a user