Commits

Doug Gregor committed c25b14b1bdd
Basic SIL- and IR-generation support for trivial uses of DynamicSelf. Introduce a new AST node to capture the covariant function type conversion for DynamicSelf. This conversion differs from the normal function-conversion expressions because it isn't inherently type-safe; type safety is assured through DynamicSelf. On the SIL side, map DynamicSelf down to the type of the declaring class to keep the SIL type system consistent. Map the new CovariantFunctionConversionExpr down to a convert_function instruction, slightly loosening the constraints on convert_function to allow for this (it's always been ABI-compatible-only conversions anyway). We currently generate awful SIL when calling a DynamicSelf method, because SILGenApply doesn't know how to deal with the implicit return type adjustment associated with the covariant function conversion. That optimization will follow; at least what we have here is (barely) functional. Swift SVN r13269