Dumping Task<Task<T>>
It seems that Task<Task> is handled differently than Task; the former is returned by the Task.ContinueWith method.
When the task is finished before dumping LINQPad dumps the Task structure instead of the value.
This is reproducible using the following script:
Enumerable.Range(0, 5).Select(_ => Task.FromResult(1).ContinueWith(async x => await Task.FromResult(x.Result))).Dump();
(A few runs may be required)
Comments
Thanks - looks like a race. This will be fixed in the next build.
It works now, even when nesting up to 100 levels. Thanks!
http://share.linqpad.net/sajg9d.linq