[Mono-bugs] [Bug 75747][Wis] New - Wrong warnings when using "FunctionName = value" instead of "Return value"

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Aug 8 13:03:02 EDT 2005


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 rafaelteixeirabr at hotmail.com.

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

--- shadow/75747	2005-08-08 13:03:02.000000000 -0400
+++ shadow/75747.tmp.31729	2005-08-08 13:03:02.000000000 -0400
@@ -0,0 +1,36 @@
+Bug#: 75747
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Basic
+AssignedTo: rafaelteixeirabr at hotmail.com                            
+ReportedBy: rafaelteixeirabr at hotmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Wrong warnings when using "FunctionName = value" instead of "Return value" 
+
+Compile mcs/mbas/Test/tests/statements/SyncLockB.vb and it gives:
+================
+$mbas SyncLockB.vb /t:exe
+MonoBASIC Compiler  0.96.2.0 - (c)2002, 2003, 2004, 2005 Rafael Teixeira
+--------
+THIS IS AN ALPHA SOFTWARE.
+--------
+SyncLockB.vb(9,21) warning BC0219: The variable 'Add' is assigned but its
+value is never used
+SyncLockB.vb(16,26) warning BC0219: The variable 'Subtract' is assigned but
+its value is never used
+Compilation succeeded: 2 warning(s)
+================
+
+But should compile with no warnings. 
+
+It is getting confused with this style of setting the value that the
+function should return


More information about the mono-bugs mailing list