mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Introduce "inherited" default arguments and use them for inherited initializers.
Previously, we were cloning the default arguments completely, which meant code duplication (when inheriting within a module) or simply a failure (when inheriting across modules). Now, we reference the default arguments where we inherited them, eliminating the duplication. Part of <rdar://problem/16318855>. Swift SVN r15062
This commit is contained in:
@@ -177,6 +177,7 @@ enum DefaultArgumentKind : uint8_t {
|
||||
Line,
|
||||
Column,
|
||||
Function,
|
||||
Inherited,
|
||||
};
|
||||
using DefaultArgumentField = BCFixed<3>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user