typeof doesn't work with ref struct types.
Open
Resolution-By Design
- Dominant language
- F#
- Stars
- 4.3k
- Forks
- 876
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 131
Description
The title is quite descriptive. Try running `typeof>;;` in FSI to reproduce.
It will fail with `error FS0412: A type instantiation involves a byref type. This is not permitted by the rules of Common IL.`
Tested with .NET 5's `dotnet fsi`.
Contributor guide
Assessment
This issue has not been assessed yet.