dotnet / dotnet/fsharp

typeof doesn't work with ref struct types.

Open
#10,426 9 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.