Files
ILSpy/ICSharpCode.Decompiler/TypeSystem
Siegfried PammerandClaude Opus 4.7 1a297bebb2 Handle non-Task task-likes (ValueTask, custom AsyncMethodBuilder) in ILReader async return-type unpacking.
Add TaskType.UnpackAnyTask and use it in ILReader.Init / ReadIL so methodReturnStackType and function.AsyncReturnType agree for runtime-async methods that return ValueTask/ValueTask<T> or any [AsyncMethodBuilder]-attributed custom task type. Previously only Task/Task<T> were unpacked, leaving AsyncReturnType=void while the IL Leave value carried the unpacked element type, which tripped the StackType assert in ExpressionBuilder.Translate.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
2026-05-20 22:30:41 +02:00
..
2025-08-28 20:56:19 -04:00
2025-08-28 20:56:19 -04:00
2025-08-28 20:56:19 -04:00
2025-08-28 20:56:19 -04:00
2025-08-28 20:56:19 -04:00
2025-08-28 20:56:19 -04:00
2025-12-29 19:24:31 +01:00