[sre] Throw a TLE if a generic inst is used before the gtd is created.
authorAleksey Kliger <aleksey@xamarin.com>
Tue, 29 Nov 2016 15:31:08 +0000 (10:31 -0500)
committerAleksey Kliger <aleksey@xamarin.com>
Tue, 29 Nov 2016 16:40:19 +0000 (11:40 -0500)
commit72d3e86e9e9edff56d4a96bdf3e51b9e60d782cd
tree6a90addf581d194840e2e1b7a45134951d19263d
parentab9b8967ccb68eff44cb9879b305def878e77c54
[sre] Throw a TLE if a generic inst is used before the gtd is created.

This can happen if TypeBuilders are used to construct something like
  class S<T> {
    ...
  }
  class R {
    public S<int> SI;
  }

And then CreateType() is called for R and GetField("SI") is called on
  the result before CreateType() is called on the builder for S.
mono/metadata/reflection.c