Define type initialization semantics for interface instance methods (#16340)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Tue, 13 Feb 2018 04:08:29 +0000 (05:08 +0100)
committerJan Kotas <jkotas@microsoft.com>
Tue, 13 Feb 2018 04:08:29 +0000 (20:08 -0800)
commitb83e8005cb6a343ee09c061d4f4bf1f9588c4687
tree089181cb65bf83a8261872d68453b54c92ea3e23
parente00d57abac979291de6f68d449a9e7ea726e2e1f
Define type initialization semantics for interface instance methods (#16340)

* Define type initialization semantics for interface instance methods

Accessing an instance method on an interface should trigger non-beforefieldinit class constructors (same as it does for valuetypes).

Fixes #15650.
src/vm/jitinterface.cpp
tests/src/Regressions/coreclr/15650/interfacecctor.il [new file with mode: 0644]
tests/src/Regressions/coreclr/15650/interfacecctor.ilproj [new file with mode: 0644]