[Mono-bugs] [Bug 596910] New: Compiler error VBNC30037: Symbol is not valid with nullable syntax
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Apr 15 08:57:48 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=596910
http://bugzilla.novell.com/show_bug.cgi?id=596910#c0
Summary: Compiler error VBNC30037: Symbol is not valid with
nullable syntax
Classification: Mono
Product: Mono: Compilers
Version: SVN
Platform: x86
OS/Version: Ubuntu
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basic
AssignedTo: rkvinge at novell.com
ReportedBy: mm_de at yahoo.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Opera/9.80 (Windows NT 6.0; U; de) Presto/2.5.24
Version/10.52
According to the spec vb.net compiler should allow a syntax like this:
Dim test As Integer?
which is equivalent to
Dim test As Nullable(Of Integer)
Short Example:
Sub Main()
Dim test As Integer?
If Not test.HasValue Then
test = 10
End If
End Sub
See section 7.1.1 in the Visual Basic Language Specification 9.0
http://www.microsoft.com/downloads/details.aspx?familyid=39DE1DD0-F775-40BF-A191-09F5A95EF500&displaylang=en
Reproducible: Always
Steps to Reproduce:
1. create module.vb
2. execute "vbnc module.vb"
Actual Results:
mono vb.net compiler aborts with VBNC30037
Expected Results:
compilation succeeds.
--
Configure bugmail: http://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