Do not check static methods for variance safety rules (#40152)
authorDavid Wrighton <davidwr@microsoft.com>
Thu, 30 Jul 2020 22:34:25 +0000 (15:34 -0700)
committerGitHub <noreply@github.com>
Thu, 30 Jul 2020 22:34:25 +0000 (15:34 -0700)
commita5e2249753147038bc9f317bb556c32e2bc91f29
tree7767835a17a2d5ef8a71d8726a67f5fa5d91cbf5
parent621ed57461ed21c4eb8b6fbff3fa81ddf853ff1c
Do not check static methods for variance safety rules (#40152)

- There are no variance restrictions on the method signature of static members

This change brings the coreclr runtime into compliance with section 9.7 of Partition II of the ECMA 335 spec.
src/coreclr/src/vm/methodtablebuilder.cpp
src/tests/Loader/classloader/generics/Variance/Interfaces/NoVarianceCheckForStaticMethods.il [new file with mode: 0644]
src/tests/Loader/classloader/generics/Variance/Interfaces/NoVarianceCheckForStaticMethods.ilproj [new file with mode: 0644]