Make CreateConcreteTypeWithAbstractMethod testcase compile
authorRaja R Harinath <harinath@hurrynot.org>
Thu, 30 Jul 2009 11:19:56 +0000 (11:19 -0000)
committerRaja R Harinath <harinath@hurrynot.org>
Thu, 30 Jul 2009 11:19:56 +0000 (11:19 -0000)
svn path=/trunk/mcs/; revision=139054

mcs/class/corlib/Test/System.Reflection.Emit/TypeBuilderTest.cs

index b9d6b69c788ae5716188f55d2b63f29e1cfb8d8a..f771746577569f014174b44ab90e627e8409400c 100644 (file)
@@ -10621,7 +10621,7 @@ namespace MonoTests.System.Reflection.Emit
                public void CreateConcreteTypeWithAbstractMethod ()
                {
                        TypeBuilder tb = module.DefineType (genTypeName ());
-                       tb.DefineMethod("method", MethodAttributes.Abstract | MethodAttributes.Public);
+                       tb.DefineMethod("method", MethodAttributes.Abstract | MethodAttributes.Public, typeof (void), Type.EmptyTypes);
                        try {
                                tb.CreateType ();
                                Assert.Fail ("#1");