Checks the constructor declaring type.
commit8f1e86cc79e89ac7c62ed59c9f9bb9723ac909b9
authorRodrigo Kumpera <kumpera@gmail.com>
Fri, 22 Oct 2010 19:57:00 +0000 (22 17:57 -0200)
committerRodrigo Kumpera <kumpera@gmail.com>
Fri, 22 Oct 2010 19:57:00 +0000 (22 17:57 -0200)
tree768f0263868f6b68d9d711a95ef3c56efbc0b6fd
parent3d8030db17d67251571f64a0a789974ae7db037e
Checks the constructor declaring type.

* TypeBuilder.cs (GetConstructor): Check if the ctor
declaring type is the right one and the same as type.

* TypeBuilderTest.cs: Add regression test.

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