Skip to content

Commit

Permalink
Distinguish subscript member type from result type
Browse files Browse the repository at this point in the history
  • Loading branch information
beccadax committed Jun 11, 2019
1 parent bb7d0c2 commit 223fde6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Sema/CSGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ namespace {

// Add the member constraint for a subscript declaration.
// FIXME: weak name!
auto memberTy = CS.createTypeVariable(resultLocator, TVO_CanBindToNoEscape);
auto memberTy = CS.createTypeVariable(memberLocator, TVO_CanBindToNoEscape);

// FIXME: synthesizeMaterializeForSet() wants to statically dispatch to
// a known subscript here. This might be cleaner if we split off a new
Expand Down

0 comments on commit 223fde6

Please sign in to comment.