Skip to content

Commit 689ac54

Browse files
authored
Document known issue for covariant Task overrides (#10247)
Added a known issue regarding covariant overrides of Task causing TypeLoadException in .NET 11.
1 parent e06f2f7 commit 689ac54

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

release-notes/11.0/known-issues.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# .NET 11 Known Issues
22

33
You may encounter some known issues, which may include workarounds, mitigations, or expected resolution timeframes. Watch this space for any known issues in .NET 11.0.
4+
5+
## Covariant overrides of `Task`/`Task<T>` causes TypeLoadException
6+
7+
Refactoring for the [Runtime-Async](https://github.com/dotnet/runtime/issues/109632) feature caused a bug in Task-returning methods with covariant returns. The bug has been fixed for Preview 2, but the fix did not make Preview 1.

0 commit comments

Comments
 (0)