Commits

Andrew Trick committed 09db0dda92f
Add wrappers around Builtin.isUnique. The wrappers for the _native variants provide point-of-use sanity checking. They also allows stdlib code to use regular (Bool) types. These need to be fully generic to support class protocols. It also avoids a massive amount of overloading for all the reference type variations (AnyObject, Native, Unknown, Bridge) x 2 for optional versions of each. Because the wrapper is generic, type checking had to be deferred until IRGen. Generating code for the wrapper itself will result in an IRGen-time type error. They need to be transparent anyway for proper diagnostics, but also must be internal. The external API passes type checks because it forces conformance to AnyObject. Swift SVN r27930