We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Diagnostic
1 parent d8435e4 commit 6517bceCopy full SHA for 6517bce
include/swift/AST/DiagnosticEngine.h
@@ -534,8 +534,9 @@ namespace swift {
534
gatherArgs(VArgs...);
535
}
536
537
- /*implicit*/Diagnostic(DiagID ID, ArrayRef<DiagnosticArgument> Args)
538
- : ID(ID), Args(Args.begin(), Args.end()) {}
+ Diagnostic(DiagID ID, ArrayRef<DiagnosticArgument> Args) : Diagnostic(ID) {
+ this->Args.append(Args.begin(), Args.end());
539
+ }
540
541
template <class... ArgTypes>
542
static Diagnostic fromTuple(Diag<ArgTypes...> id,
0 commit comments