+2006-01-11 Raja R Harinath <rharinath@novell.com>
+
+ * cs0023-3.cs: New test from #77204.
+
2006-01-06 Ankit Jain <jankit@novell.com>
* known-issues-gmcs: Removed cs0619-18.cs and cs0619-24.cs (working now).
--- /dev/null
+// cs0023-3.cs: The `.' operator can not be applied to operands of type 'void'
+// Line: 12
+
+using System;
+
+public class Testing
+{
+ public static void DoNothing() {}
+
+ public static void Main()
+ {
+ Console.WriteLine(DoNothing().ToString());
+ }
+}
# csXXXX.cs NO ERROR : error test case doesn't report any error. An exception is considered
# as NO ERROR and CS5001 is automatically ignored.
+cs0023-3.cs
cs0229-2.cs
cs0229.cs NO ERROR
cs0231-2.cs
2006-01-11 Raja R Harinath <rharinath@novell.com>
+ Fix #77204.
+ * expression.cs (MemberAccess.DoResolve): Disallow the use of '.'
+ on operands of 'void' type.
+
Fix #77200.
* cfold.cs (BinaryFold): Implement folding of BinaryOr, BinaryAnd
and ExclusiveOr for boolean constants too.
return null;
}
+ if (expr_type == TypeManager.void_type) {
+ Error (23, "The `.' operator can not be applied to operands of type 'void'");
+ return null;
+ }
+
Expression member_lookup;
member_lookup = MemberLookupFinal (ec, expr_type, expr_type, Identifier, loc);
if (member_lookup == null)