Merge pull request #70602 from ApolloZhu/macro/expression-as-default-argument

[Macros] Expression macro as caller-side default argument
This commit is contained in:
Doug Gregor
2024-02-14 16:10:11 -08:00
committed by GitHub
51 changed files with 730 additions and 25 deletions

View File

@@ -85,7 +85,7 @@ llvm::Optional<constraints::SyntacticElementTarget>
typeCheckTarget(constraints::SyntacticElementTarget &target,
OptionSet<TypeCheckExprFlags> options);
Type typeCheckParameterDefault(Expr *&, DeclContext *, Type, bool);
Type typeCheckParameterDefault(Expr *&, DeclContext *, Type, bool, bool);
} // end namespace TypeChecker
@@ -3019,7 +3019,7 @@ private:
friend Type swift::TypeChecker::typeCheckParameterDefault(Expr *&,
DeclContext *, Type,
bool);
bool, bool);
/// Emit the fixes computed as part of the solution, returning true if we were
/// able to emit an error message, or false if none of the fixits worked out.