Allow creating typehandles to `TypedReference*` (dotnet/coreclr#25817)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Tue, 23 Jul 2019 12:14:16 +0000 (14:14 +0200)
committerGitHub <noreply@github.com>
Tue, 23 Jul 2019 12:14:16 +0000 (14:14 +0200)
commit1c56d40d8553a879c6144676bd03deb935a2baa3
tree451e0e2209a856eec151bdaf002b24376c0b911f
parent0414a7c1fd17a6764cda5ad8d41e61c5b0d2e7b3
Allow creating typehandles to `TypedReference*` (dotnet/coreclr#25817)

It's unclear why this was disallowed - we allow them in method signatures and there's a comment a couple lines below the code I'm touching saying we thought about blocking this for byref-like types, but there's no reason to do that.

`TypedReference` is the original byref-like type.

Commit migrated from https://github.com/dotnet/coreclr/commit/2354d0b92f703b79f184a07557f9221dc11224d9
src/coreclr/src/vm/clsload.cpp
src/coreclr/tests/src/reflection/regression/github_25697/25697.cs [new file with mode: 0644]
src/coreclr/tests/src/reflection/regression/github_25697/25697.csproj [new file with mode: 0644]