Skip to content

Commit 2de4755

Browse files
committed
[CSApply] Filtering 'none' results should filter out any other decl (such as typealiases, structs, etc) by default
1 parent 389232a commit 2de4755

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/Sema/CSApply.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2494,7 +2494,10 @@ namespace {
24942494
}
24952495
}
24962496

2497-
return true;
2497+
// Filter out anything that's not one of the above. We don't care
2498+
// if we have a typealias named 'none' or a struct/class named
2499+
// 'none'.
2500+
return false;
24982501
});
24992502

25002503
if (results.empty()) {

0 commit comments

Comments
 (0)