[Mono-bugs] [Bug 59781][Maj] New - Console.WriteLine and ulong type error
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 8 Jun 2004 05:58:07 -0400 (EDT)
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 pascalfresnay@free.fr.
http://bugzilla.ximian.com/show_bug.cgi?id=59781
--- shadow/59781 2004-06-08 05:58:07.000000000 -0400
+++ shadow/59781.tmp.3400 2004-06-08 05:58:07.000000000 -0400
@@ -0,0 +1,31 @@
+Bug#: 59781
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: PascalFresnay@free.fr
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Summary: Console.WriteLine and ulong type error
+
+ulong a = 10;
+ulong b = 3;
+Console.WriteLine("bug here --> "+a-b);
+
+This code should not compile
+(bug appears only with ulong type, mcs correctly reports an error with
+other types like uint, long, etc.)
+
+error expected :
+(CS0019) Operator - cannot be applied to operands of type `ulong' and `string'
+
+Runtime error :
+** ERROR **: Invalid IL code at IL0018 in MainClass:Main (string[]):
+IL_0018: sub