ISG fails if encounter `Dictionary<,>.TryGetValue(..., out _);`
Closed this issue · 1 comments
lsoft commented
ISG gets shocked because of the following sentence: out _
, replacing this with out var unused
makes things works fine. :)
test:
public partial class Subject
{
[CreateSyncVersion]
public async Task<object> SomeMethodAsync(object o)
{
var d1 = new Dictionary<int, int>();
d1.TryGetValue(0, out _);
await Task.Delay(1);
return null;
}
}
virzak commented
I didn't even know you can do out _
. Always used out var _
.