File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
validation-test/compiler_crashers_2_fixed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -7472,11 +7472,11 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyMemberConstraint(
7472
7472
if (!paramDecl)
7473
7473
continue ;
7474
7474
7475
- auto descriptor = UnqualifiedLookupDescriptor (
7475
+ auto descriptor = UnqualifiedLookupDescriptor{
7476
7476
DeclNameRef (param->getName ()),
7477
- paramDecl->getDeclContext ()->getParentSourceFile (),
7477
+ paramDecl->getDeclContext ()->getModuleScopeContext (),
7478
7478
SourceLoc (),
7479
- UnqualifiedLookupFlags::TypeLookup) ;
7479
+ UnqualifiedLookupFlags::TypeLookup} ;
7480
7480
auto lookup = evaluateOrDefault (
7481
7481
Context.evaluator , UnqualifiedLookupRequest{descriptor}, {});
7482
7482
for (auto &result : lookup) {
Original file line number Diff line number Diff line change
1
+ // RUN: not %target-swift-frontend -typecheck %s
2
+
3
+ typealias IndexResult = Result < Bol , Error >
4
+ extension IndexResult {
5
+ func perfect( ) -> Self {
6
+ Success ( true )
7
+ }
8
+ }
You can’t perform that action at this time.
0 commit comments