New test.
[mono.git] / mcs / ilasm / codegen / MethodRef.cs
index 0ca29e6fca23d989247a66044266c4c1cae83a25..5c0553febf0424ae80cc9d05006118c9840ab77c 100644 (file)
@@ -30,7 +30,7 @@ namespace Mono.ILASM {
 
                         TypeDef owner_def = code_gen.TypeManager[owner.FullName];
                        if (owner_def == null)
-                               throw new Exception (String.Format ("Reference to undefined class '{0}'", owner.FullName));
+                               Report.Error ("Reference to undefined class '" + owner.FullName + "'");
 
                         string write_name;