mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #70602 from ApolloZhu/macro/expression-as-default-argument
[Macros] Expression macro as caller-side default argument
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user