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 e986a15 commit df72468Copy full SHA for df72468
lib/AST/Pattern.cpp
@@ -349,7 +349,7 @@ SourceRange TuplePattern::getSourceRange() const {
349
}
350
351
SourceRange TypedPattern::getSourceRange() const {
352
- if (isImplicit()) {
+ if (isImplicit() || isPropagatedType()) {
353
// If a TypedPattern is implicit, then its type is definitely implicit, so
354
// we should ignore its location. On the other hand, the sub-pattern can
355
// be explicit or implicit.
0 commit comments