Author: marek
Date: 2007-06-13 05:46:45 -0400 (Wed, 13 Jun 2007)
New Revision: 79390
Modified:
trunk/mcs/mcs/ChangeLog
trunk/mcs/mcs/cs-tokenizer.cs
trunk/mcs/mcs/expression.cs
Log:
2007-06-13 Marek Safar <[EMAIL PROTECTED]>
A fix for bug #81748
* cs-tokenizer.cs,
* expression.cs: More checks for non ISO-1 features.
Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog 2007-06-13 09:34:13 UTC (rev 79389)
+++ trunk/mcs/mcs/ChangeLog 2007-06-13 09:46:45 UTC (rev 79390)
@@ -1,3 +1,9 @@
+2007-06-13 Marek Safar <[EMAIL PROTECTED]>
+
+ A fix for bug #81748
+ * cs-tokenizer.cs,
+ * expression.cs: More checks for non ISO-1 features.
+
2007-06-12 Marek Safar <[EMAIL PROTECTED]>
A fix for bug #81807
Modified: trunk/mcs/mcs/cs-tokenizer.cs
===================================================================
--- trunk/mcs/mcs/cs-tokenizer.cs 2007-06-13 09:34:13 UTC (rev 79389)
+++ trunk/mcs/mcs/cs-tokenizer.cs 2007-06-13 09:46:45 UTC (rev 79390)
@@ -2378,6 +2378,9 @@
if (next_token < Token.LAST_KEYWORD)
Report.Error (267, Location, "The
`partial' modifier can be used only immediately before keyword `class',
`struct', or `interface'");
+ if (RootContext.Version ==
LanguageVersion.ISO_1)
+ Report.FeatureIsNotISO1 (Location,
"partial types");
+
val = new LocatedToken (Location, "partial");
return Token.IDENTIFIER;
}
Modified: trunk/mcs/mcs/expression.cs
===================================================================
--- trunk/mcs/mcs/expression.cs 2007-06-13 09:34:13 UTC (rev 79389)
+++ trunk/mcs/mcs/expression.cs 2007-06-13 09:46:45 UTC (rev 79390)
@@ -6685,6 +6685,9 @@
public QualifiedAliasMember (string alias, string identifier,
Location l)
{
+ if (RootContext.Version == LanguageVersion.ISO_1)
+ Report.FeatureIsNotISO1 (l, "namespace alias
qualifier");
+
this.alias = alias;
this.identifier = identifier;
loc = l;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches