[Mono-bugs] [Bug 444993] New: Exit Sub wrongly disallowed in a constructor
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Nov 14 05:05:57 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=444993
Summary: Exit Sub wrongly disallowed in a constructor
Product: Mono: Compilers
Version: SVN
Platform: i386
OS/Version: Ubuntu
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basic
AssignedTo: rkvinge at novell.com
ReportedBy: ciaran at ciarang.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Using Exit Sub in a Sub New, which works with the MS compiler, gives this
error:
It is not valid to use 'Exit Sub' in a Function or Property.(VBNC30065)
Workaround, use Return instead. To reproduce:
Public Class Test3
Public Sub New(ByVal b As Boolean)
If b Then Exit Sub
End Sub
End Class
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list