File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/SymbolKey Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -235,6 +235,7 @@ public readonly SymbolKeyResolution Resolve(
235
235
public override readonly string ToString ( )
236
236
=> _symbolKeyData ;
237
237
238
+ // Note: this method may clear 'symbols' before returning.
238
239
private static SymbolKeyResolution CreateResolution < TSymbol > (
239
240
PooledArrayBuilder < TSymbol > symbols , string reasonIfFailed , out string ? failureReason )
240
241
where TSymbol : class , ISymbol
@@ -253,7 +254,7 @@ private static SymbolKeyResolution CreateResolution<TSymbol>(
253
254
{
254
255
failureReason = null ;
255
256
return new SymbolKeyResolution (
256
- ImmutableArray < ISymbol > . CastUp ( symbols . Builder . ToImmutable ( ) ) ,
257
+ ImmutableArray < ISymbol > . CastUp ( symbols . Builder . ToImmutableAndClear ( ) ) ,
257
258
CandidateReason . Ambiguous ) ;
258
259
}
259
260
}
You can’t perform that action at this time.
0 commit comments