[Mono-bugs] [Bug 77210][Maj] New - Compiler error, 'passing' arguments to functions or subs

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jan 11 08:57:17 EST 2006

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 alex at buayacorp.com.


--- shadow/77210	2006-01-11 08:57:17.000000000 -0500
+++ shadow/77210.tmp.15995	2006-01-11 08:57:17.000000000 -0500
@@ -0,0 +1,64 @@
+Bug#: 77210
+Product: Mono: Compilers
+Version: 1.0
+OS Details: FC4 x86_64
+Status: NEW   
+Priority: Major
+Component: Basic
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: alex at buayacorp.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Compiler error, 'passing' arguments to functions or subs
+There is a compiler error when passing arguments of type void(?) to
+functions or subs.
+Steps to reproduce the problem:
+1. Write a simple class (bar.vb):
+Imports System
+Public Class Foo
+        Public Shared Sub Main()
+                Dummy(Console.WriteLine()) ' Error
+        End Sub
+        Public Shared Sub Dummy(ByVal x as String)
+        End Sub
+End Class
+Actual Results:
+[alex at localhost tests]$ mbas bar.vb
+MonoBASIC Compiler - (c)2002, 2003, 2004, 2005 Rafael Teixeira
+Compilation succeeded
+[alex at localhost tests]$ mono bar.exe
+** ERROR **: Invalid IL code at IL0005 in Foo:Main (): IL_0005: box      
+Expected Results:
+Should not compile.
+How often does this happen? 
+Additional Information:
+Compiler build from svn source.

More information about the mono-bugs mailing list