Skip to content

Commit

Permalink
Allow emitting function pointers in TypeSystemMetadataEmitter (#85626)
Browse files Browse the repository at this point in the history
This is handled. It's unclear to me why it was disallowed.

Unfortunately, this means `IlcGenerateMstatFile` is going to be completely broken in .NET 8 Preview 4.
  • Loading branch information
MichalStrehovsky authored May 2, 2023
1 parent 34bb56a commit 08ba40d
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,6 @@ public EntityHandle GetTypeRef(TypeDesc type)
return handle;
}

if (type.IsFunctionPointer)
{
throw new ArgumentException("type");
}

EntityHandle typeHandle;

if (type.IsTypeDefinition && type is MetadataType metadataType)
Expand Down

0 comments on commit 08ba40d

Please sign in to comment.