Author: marek
Date: 2008-02-08 06:09:02 -0500 (Fri, 08 Feb 2008)
New Revision: 95234
Modified:
trunk/mcs/mcs/ChangeLog
trunk/mcs/mcs/cs-parser.jay
Log:
2008-02-08 Marek Safar <[EMAIL PROTECTED]>
* cs-parser.jay: Null coalescing operator is not part of ISO-1.
Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog 2008-02-08 10:51:19 UTC (rev 95233)
+++ trunk/mcs/mcs/ChangeLog 2008-02-08 11:09:02 UTC (rev 95234)
@@ -1,5 +1,9 @@
2008-02-08 Marek Safar <[EMAIL PROTECTED]>
+ * cs-parser.jay: Null coalescing operator is not part of ISO-1.
+
+2008-02-08 Marek Safar <[EMAIL PROTECTED]>
+
A fix for bugs #321394, #323028
* generic.cs, parameter.cs, ecore.cs, class.cs, decl.cs, delegate.cs:
Reworked naive IsAccessibleAs implementation to handle nested types.
Modified: trunk/mcs/mcs/cs-parser.jay
===================================================================
--- trunk/mcs/mcs/cs-parser.jay 2008-02-08 10:51:19 UTC (rev 95233)
+++ trunk/mcs/mcs/cs-parser.jay 2008-02-08 11:09:02 UTC (rev 95234)
@@ -3745,7 +3745,7 @@
unbound_type_name
: IDENTIFIER GENERIC_DIMENSION
{
- if (RootContext.Version < LanguageVersion.ISO_1)
+ if (RootContext.Version < LanguageVersion.ISO_2)
Report.FeatureIsNotAvailable (lexer.Location,
"generics");
LocatedToken lt = (LocatedToken) $1;
@@ -4093,6 +4093,9 @@
}
| conditional_or_expression OP_COALESCING expression
{
+ if (RootContext.Version < LanguageVersion.ISO_2)
+ Report.FeatureIsNotAvailable (GetLocation ($2), "null
coalescing operator");
+
$$ = new Nullable.NullCoalescingOperator ((Expression) $1,
(Expression) $3, lexer.Location);
}
// We'll be resolved into a `parenthesized_expression_0' later on.
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches