Outside function input types, ban single-element tuples with a label and variadic tuples.

Addresses <rdar://problem/15456156> and <rdar://problem/17466857>, and
sets us up for more simplification in the type system.


Swift SVN r20995
This commit is contained in:
Doug Gregor
2014-08-04 04:43:32 +00:00
parent b53467768a
commit 91fb509558
17 changed files with 65 additions and 73 deletions

View File

@@ -611,7 +611,7 @@ public func transcode<
OutputEncoding.CodeUnit == Output.Element>(
inputEncoding: InputEncoding.Type, outputEncoding: OutputEncoding.Type,
var input: Input, var output: Output, #stopOnError: Bool
) -> (hadError: Bool) {
) -> (Bool) {
// NB. It is not possible to optimize this routine to a memcpy if
// InputEncoding == OutputEncoding. The reason is that memcpy will not