[Mono-bugs] [Bug 75404][Wis] New - Compilation fails: MyMethod vs.
MyMethod()
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Jun 28 07:16:51 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 jwezel at compumaster.de.
http://bugzilla.ximian.com/show_bug.cgi?id=75404
--- shadow/75404 2005-06-28 07:16:51.000000000 -0400
+++ shadow/75404.tmp.1371 2005-06-28 07:16:51.000000000 -0400
@@ -0,0 +1,107 @@
+Bug#: 75404
+Product: Mono: Compilers
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Basic
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: jwezel at compumaster.de
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Compilation fails: MyMethod vs. MyMethod()
+
+Description of Problem:
+When a procedure doesn't need any parameters and you call it without
+parenthesis like "MyMethod" instead of "MyMethod()", you'll run into
+compilation errors in the next lines of your code
+
+Steps to reproduce the problem:
+1. Take this script code:
+[root at lwezel temp]# cat test.vb
+Option Explicit On
+Option Strict Off
+
+imports System
+ Imports System.Collections
+Imports System.Collections.Specialized
+Imports System.Configuration
+ Imports System.Text
+ Imports System.Text.RegularExpressions
+ Imports System.Web
+ Imports System.Web.Caching
+imports System.Web.Security
+Imports System.Web.SessionState
+ Imports System.Web.UI
+ Imports System.Web.UI.WebControls
+Imports System.Web.UI.HtmlControls
+
+ Namespace ASP
+ Public Class access_error_aspx
+
+
+
+ Private Shared __intialized As Boolean = false
+
+ Private Shared __autoHandlers As Integer
+
+
+
+
+
+ Public Sub New()
+ MyBase.New
+ If ASP.access_error_aspx.__intialized = false Then
+ ASP.access_error_aspx.__intialized = true
+ End If
+ End Sub
+
+ Protected Property AutoHandlers As Integer
+ Get
+ Return ASP.access_error_aspx.__autoHandlers
+ End Get
+ Set
+ ASP.access_error_aspx.__autoHandlers = Value
+ End Set
+ End Property
+
+end class
+end namespace
+[root at lwezel temp]#
+
+2. Compile it with
+[root at lwezel temp]# mbas test.vb /target:library
+
+Actual Results:
+MonoBASIC Compiler 0.96.2.0 - (c)2002, 2003, 2004, 2005 Rafael Teixeira
+--------
+THIS IS AN ALPHA SOFTWARE.
+--------
+syntax error, got token `EOL'
+test.vb(32,0) error BC30201: Expression expected
+test.vb(33,54) error BC30201: Expression expected
+test.vb(35,16) error BC30087: 'End If' is not having a corresponding 'If'
+syntax error, got token `PROPERTY'
+test.vb(38,26) error BC29999: Parsing error
+Compilation failed: 4 Error(s), 0 warnings
+
+
+Expected Results:
+ MyBase.New
+and
+ MyBase.New()
+should be the very same
+No errors should happen when the parenthesis are missing
+
+
+
+How often does this happen?
+Always
+
+Additional Information:
+Mono 1.1.8 from 2005-06-28
More information about the mono-bugs
mailing list