Fix delegate creation for default interface methods on structs (dotnet/coreclr#22427)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Thu, 7 Feb 2019 16:48:09 +0000 (17:48 +0100)
committerGitHub <noreply@github.com>
Thu, 7 Feb 2019 16:48:09 +0000 (17:48 +0100)
commitc81222fbe11f39e39836f739255149230339a227
tree93a79feabf6fb6f06c67472c59714f1c94f5b4db
parent43bc1cf6f5f676cb4b06854db8041ca22b836b7d
Fix delegate creation for default interface methods on structs (dotnet/coreclr#22427)

We only need to find an unboxing stub if we resolved the interface to a valuetype method. If we resolved to a default interface method implementation, unboxing is not necessary.

Commit migrated from https://github.com/dotnet/coreclr/commit/ef48a432ae911b93cbdc384f9499190b010cbffa
src/coreclr/src/vm/comdelegate.cpp
src/coreclr/tests/src/Regressions/coreclr/22386/debug3.il [new file with mode: 0644]
src/coreclr/tests/src/Regressions/coreclr/22386/debug3.ilproj [new file with mode: 0644]