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 5957a92 commit a230d40Copy full SHA for a230d40
lib/Sema/CSDiag.cpp
@@ -427,15 +427,7 @@ ConcreteDeclRef constraints::resolveLocatorToDecl(
427
428
break;
429
}
430
-
431
- // Otherwise, do the best we can with the declaration we found.
432
- // FIXME: Deal with the other interesting cases here, e.g.,
433
- // subscript declarations.
434
- if (isa<FuncDecl>(declRef.getDecl()) ||
435
- isa<ConstructorDecl>(declRef.getDecl()))
436
- return declRef;
437
438
- return ConcreteDeclRef();
+ return declRef;
439
440
441
/// Emit a note referring to the target of a diagnostic, e.g., the function
0 commit comments