[Mono-bugs] [Bug 71999][Nor] New - mcs 2.0 missing default operator support

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 31 Jan 2005 05:29:59 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by marek.safar@seznam.cz.

http://bugzilla.ximian.com/show_bug.cgi?id=71999

--- shadow/71999	2005-01-31 05:29:59.000000000 -0500
+++ shadow/71999.tmp.26838	2005-01-31 05:29:59.000000000 -0500
@@ -0,0 +1,51 @@
+Bug#: 71999
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: marek.safar@seznam.cz               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs 2.0 missing default operator support
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+This is a new feature in 2.0
+
+Steps to reproduce the problem:
+
+class C
+{
+    string s = default(string);
+	
+    public static void Main () {}
+}
+
+Actual Results:
+
+syntax error, got token `DEFAULT'
+test-999.cs(3) error CS8025: Parsing error
+Compilation failed: 1 error(s), 0 warnings
+
+Expected Results:
+
+No error
+
+
+Additional Information:
+
+csc /langversion:iso-1 test-999.cs
+
+test-999.cs(3,31): error CS1644: Feature 'default operator' cannot be used
+        because it is not part of the standardized ISO C# language
+specification