Check for declaring type.
commit53522f19634bc0c04317862765e4ff11306ea2fe
authorRodrigo Kumpera <kumpera@gmail.com>
Tue, 26 Oct 2010 16:16:14 +0000 (26 14:16 -0200)
committerRodrigo Kumpera <kumpera@gmail.com>
Tue, 26 Oct 2010 16:17:33 +0000 (26 14:17 -0200)
tree99eab58274fe4699a181a33eb3e858ecd214c0d4
parent69bf97bca7ddae822f1dbbe976e8a7dfe8ceb1c4
Check for declaring type.

* TypeBuilder.cs (GetField): Check if the declaring type
matches the supplied type gtd.

* TypeBuilderTest.cs: Add regression test.

Fixes #649237
mcs/class/corlib/System.Reflection.Emit/TypeBuilder.cs
mcs/class/corlib/Test/System.Reflection.Emit/TypeBuilderTest.cs