Author: mritvik
Date: 2005-04-06 04:25:07 -0400 (Wed, 06 Apr 2005)
New Revision: 42595
Modified:
trunk/mcs/mbas/ChangeLog
trunk/mcs/mbas/class.cs
Log:
2005-04-06 Ritvik Mayank <[EMAIL PROTECTED]>
by Sudharsan V <[EMAIL PROTECTED]>
* class.cs: correction for reflecting the correct Line No. in the Error
message
Modified: trunk/mcs/mbas/ChangeLog
===================================================================
--- trunk/mcs/mbas/ChangeLog 2005-04-06 07:50:36 UTC (rev 42594)
+++ trunk/mcs/mbas/ChangeLog 2005-04-06 08:25:07 UTC (rev 42595)
@@ -1,3 +1,6 @@
+2005-04-06 Ritvik Mayank <[EMAIL PROTECTED]>
+ by Sudharsan V <[EMAIL PROTECTED]>
+ * class.cs: correction for reflecting the correct Line No. in the Error
message
2005-04-05 Ritvik Mayank <[EMAIL PROTECTED]>
Patch Submitted by Sudharsan V <[EMAIL PROTECTED]>
* mb-parser.jay : correction for reflecting the correct Line No. in the
Error message
Modified: trunk/mcs/mbas/class.cs
===================================================================
--- trunk/mcs/mbas/class.cs 2005-04-06 07:50:36 UTC (rev 42594)
+++ trunk/mcs/mbas/class.cs 2005-04-06 08:25:07 UTC (rev 42595)
@@ -691,7 +691,7 @@
"'NotInheritable' class " + TypeManager.MonoBASIC_Name (parent));
if (!AsAccessible (parent, ModFlags))
- Report.Error (30389, Location,
+ Report.Error (30389, Location,
"Inconsistent
accessibility: base class `" +
TypeManager.MonoBASIC_Name (parent) + "' is less " +
"accessible than class `"
+
@@ -714,7 +714,7 @@
}
if (is_class == false && !t.IsInterface){
- Report.Error (527, "In Struct `" + Name
+ "', type `"+
+ Report.Error (527, Location, "In Struct
`" + Name + "', type `"+
name +"' is not an
interface");
error = true;
return null;
@@ -722,10 +722,10 @@
if (t.IsSealed) {
if (t.IsValueType)
- Report.Error (30258, "class `"+
Name +
+ Report.Error (30258, Location,
"class `"+ Name +
"': a class can not
inherit from a struct/enum");
- /*Report.Error (509, "class `"+ Name +
+ /*Report.Error (509, Location, "class
`"+ Name +
"': Cannot inherit from
sealed class `"+
bases [i]);*/
error = true;
@@ -734,7 +734,7 @@
if (t.IsClass) {
if (parent != null){
- Report.Error (30121, Name + ":
A class cannot inherit " +
+ Report.Error (30121, Location,
Name + ": A class cannot inherit " +
"more than one class");
error = true;
return null;
@@ -743,7 +743,7 @@
for (int x = 0; x < j; x++) {
if (t == ifaces [x]) {
- Report.Error (528, "`" + name +
"' is already listed in interface list");
+ Report.Error (528,Location, "`"
+ name + "' is already listed in interface list");
error = true;
return null;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches