Take constraints into account when checking for VAR assignability.
commitc282c989a6a1887d86d4b24db4eb60310d1e74f5
authorRodrigo Kumpera <kumpera@gmail.com>
Thu, 14 Apr 2011 17:30:04 +0000 (14 14:30 -0300)
committerRodrigo Kumpera <kumpera@gmail.com>
Thu, 14 Apr 2011 17:32:24 +0000 (14 14:32 -0300)
tree59f5265934453384c8d2295b6c48a730c5fa0ec4
parent777dab7e6358a1d5ed38058daac84abea1c86430
Take constraints into account when checking for VAR assignability.

* class.c (mono_class_is_assignable_from): Check the constraints
of two (M)VARs to see if one is assignable to the other. This is
needed when we want to check something like:

Foo<T,U> () where T : U

On the above example T is assignable to U.

Fixes #687269
mono/metadata/class.c