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.
1 parent 4f76d25 commit d0df7caCopy full SHA for d0df7ca
lib/Sema/TypeCheckError.cpp
@@ -20,6 +20,7 @@
20
#include "swift/AST/DiagnosticsSema.h"
21
#include "swift/AST/Initializer.h"
22
#include "swift/AST/Pattern.h"
23
+#include "swift/AST/PrettyStackTrace.h"
24
25
using namespace swift;
26
@@ -1648,6 +1649,10 @@ void TypeChecker::checkFunctionErrorHandling(AbstractFunctionDecl *fn) {
1648
1649
// by the time we got here.
1650
if (!fn->hasInterfaceType()) return;
1651
1652
+#ifndef NDEBUG
1653
+ PrettyStackTraceDecl debugStack("checking error handling for", fn);
1654
+#endif
1655
+
1656
CheckErrorCoverage checker(*this, Context::forFunction(fn));
1657
1658
// If this is a debugger function, suppress 'try' marking at the top level.
0 commit comments