[Mono-bugs] [Bug 66249][Cri] New - mbas parsing error with methods without parameters

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 19 Sep 2004 18:19:36 -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 rogerio.araujo@gmail.com.

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

--- shadow/66249	2004-09-19 18:19:35.000000000 -0400
+++ shadow/66249.tmp.14682	2004-09-19 18:19:36.000000000 -0400
@@ -0,0 +1,48 @@
+Bug#: 66249
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: Basic
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: rogerio.araujo@gmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mbas parsing error with methods without parameters
+
+When i try to call a method that doesn't has any parameters i got a parsing
+error, the code is something like this:
+
+'this is the method
+Sub MontarGrid()
+  dg.DataSource = CriarDataSet()
+  dg.DataBind()
+End Sub	
+
+'this is the method where i call the method above
+Sub Paginando(sender As Object, e As DataGridPageChangedEventArgs)
+  dg.CurrentPageIndex = e.NewPageIndex
+  'if i remove the parentesis the mbas compiler raise a parsing error
+  MontarGrid()  
+End Sub
+
+
+Steps to reproduce the problem:
+1.Create a method that doesn't has any parameters 
+2.Call this method without parentesis 
+
+Actual Results:
+Parsing error when call a method wihout parentesis
+
+Expected Results:
+No error when call the method without parentesis, because the method has no
+parameters...
+
+Additional Information:
+This error occurs when i try to run a ASP.NET page with VB.NET code...