A variadic parameter of function type must be @escaping -- we cannot
reason about an array of non-escaping closures, so this was a safety
hole.
Also, attempting to define an @autoclosure variadic did not produce a
diagnostic, but would fail later on if you actually tried to do
anything with it. Let's ban this completely.
Both changes are source breaking, but impact is limited to code that
was already only marginally valid.
<rdar://problem/21560309> inout allowed on function return type
<rdar://problem/21949448> Accepts-invalid: 'inout' shouldn't be allowed on stored properties
at first blush, they looked like the same issue, but they weren't:
- The former was incorrectly propagation of the TR_FunctionInput bits in TypeResolver
- The later was the inout was being parsed and ignored on some types (!)
Also, slap ErrorType on invalid inout TypeReprs to silence downstream errors.
Swift SVN r30756
Most tests were using %swift or similar substitutions, which did not
include the target triple and SDK. The driver was defaulting to the
host OS. Thus, we could not run the tests when the standard library was
not built for OS X.
Swift SVN r24504