mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Add GenericTypeParamType::getWeight()
This is currently always 0, but can be set to 1.
This commit is contained in:
@@ -2423,7 +2423,8 @@ public:
|
||||
paramKind = GenericTypeParamKind::Pack;
|
||||
}
|
||||
|
||||
auto gp = GenericTypeParamType::get(paramKind, 0, paramIndex, Type(),
|
||||
auto gp = GenericTypeParamType::get(paramKind, /*depth=*/0, paramIndex,
|
||||
/*weight=*/0, /*valueType=*/Type(),
|
||||
TC.Context);
|
||||
substGenericParams.push_back(gp);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user