Fix delegate creation for default interface methods on structs (#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)
commitef48a432ae911b93cbdc384f9499190b010cbffa
treec85bd0ef8ef12553f31b34214dd80d786a784403
parent328f79f1d9c17dd1ac00901631cd90a41e788022
Fix delegate creation for default interface methods on structs (#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.
src/vm/comdelegate.cpp
tests/src/Regressions/coreclr/22386/debug3.il [new file with mode: 0644]
tests/src/Regressions/coreclr/22386/debug3.ilproj [new file with mode: 0644]