Async lambda autocomplete doesn't recognize Task wrapper.
When you create an async lambda with implicit typing (as in a LINQ statement) then LINQPad thinks the return value of the method is `T` rather than `Task` when it comes to autocomplete suggestions.
In the above code, LINQPad thinks that `i` is a bool when it's really a Task and it shows you autocomplete suggestions for booleans. When you try to compile/run, it obviously throws an error and, although not suggested by autocomplete, you can still write `i.Result == true` and it will compile and run fine.
In the above code, LINQPad thinks that `i` is a bool when it's really a Task and it shows you autocomplete suggestions for booleans. When you try to compile/run, it obviously throws an error and, although not suggested by autocomplete, you can still write `i.Result == true` and it will compile and run fine.
Comments
So you can replicate the issue: