[corlib] Preserve List<T>.ConvertAll in TypeTest (#5215)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Sat, 15 Jul 2017 23:49:00 +0000 (01:49 +0200)
committerGitHub <noreply@github.com>
Sat, 15 Jul 2017 23:49:00 +0000 (01:49 +0200)
commitc4d38b54ad6116f0e410805f3d064878834d33ca
treed378a1183b74f0876f7280c0601e562190719b5e
parentcaa28c999c79505df8c984b60916b109d2ecdcd2
[corlib] Preserve List<T>.ConvertAll in TypeTest (#5215)

TypeTest.GetGenericMethodDefinitionOverInflatedMethodOnGTD accesses
List<T>.ConvertAll() via reflection but doesn't use the method
elsewhere so the linker can remove it. Added some usage to avoid that.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=56242
mcs/class/corlib/Test/System/TypeTest.cs