Author: marek
Date: 2007-10-09 06:04:56 -0400 (Tue, 09 Oct 2007)
New Revision: 87153
Modified:
trunk/mcs/gmcs/ChangeLog
trunk/mcs/gmcs/cs-parser.jay
Log:
2007-10-09 Marek Safar <[EMAIL PROTECTED]>
* cs-parser.jay: Added extension methods ISO-2 check.
Modified: trunk/mcs/gmcs/ChangeLog
===================================================================
--- trunk/mcs/gmcs/ChangeLog 2007-10-09 08:52:04 UTC (rev 87152)
+++ trunk/mcs/gmcs/ChangeLog 2007-10-09 10:04:56 UTC (rev 87153)
@@ -1,3 +1,7 @@
+2007-10-09 Marek Safar <[EMAIL PROTECTED]>
+
+ * cs-parser.jay: Added extension methods ISO-2 check.
+
2007-10-05 Marek Safar <[EMAIL PROTECTED]>
A fix for bug #327497
Modified: trunk/mcs/gmcs/cs-parser.jay
===================================================================
--- trunk/mcs/gmcs/cs-parser.jay 2007-10-09 08:52:04 UTC (rev 87152)
+++ trunk/mcs/gmcs/cs-parser.jay 2007-10-09 10:04:56 UTC (rev 87153)
@@ -1449,7 +1449,12 @@
parameter_modifier
: REF { $$ = Parameter.Modifier.REF; }
| OUT { $$ = Parameter.Modifier.OUT; }
- | THIS { $$ = Parameter.Modifier.This; }
+ | THIS
+ {
+ if (RootContext.Version <= LanguageVersion.ISO_2)
+ Report.FeatureIsNotISO1 (GetLocation ($1), "extension
methods");
+ $$ = Parameter.Modifier.This;
+ }
;
parameter_array
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches