Commits
Doug Gregor committed 2b11e0c327b
Add a type coercion flag that indicates when we are performing the
conversion for the implicit argument of a method ('this'), along with
an entry point (coerceObjectArgument) to perform type coercion of the
object argument to an lvalue. Use this entry point for member
reference expressions (that refer to variables/properties) and method
calls. This is a step toward eliminating [byref(implicit)] on the
implicit 'this' parameter.
More immediately, use this to close up the giant type-safety loophole
I introduced yesterday regarding conversions to references of protocol
type.
Swift SVN r1812