[Mono-bugs] [Bug 564235] New: return statement can't convert from valuetype to nullable of valuetype
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Dec 11 18:21:58 EST 2009
http://bugzilla.novell.com/show_bug.cgi?id=564235
http://bugzilla.novell.com/show_bug.cgi?id=564235#c0
Summary: return statement can't convert from valuetype to
nullable of valuetype
Classification: Mono
Product: Mono: Compilers
Version: SVN
Platform: Other
OS/Version: Other
Status: ASSIGNED
Severity: Normal
Priority: P5 - None
Component: Basic
AssignedTo: rkvinge at novell.com
ReportedBy: rkvinge at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
rolf at linux:~/test> cat test.vb
class test
shared function dt as nullable(of datetime)
return DateTime.Now
end function
end class
rolf at linux:~/test> vbnc test.vb -target:library
Visual Basic.Net Compiler version 0.0.0.5917 (Mono 2.5 - r139167)
Copyright (C) 2004-2008 Rolf Bjarne Kvinge. All rights reserved.
/home/rolf/test/test.vb (3,18) : Error VBNC99997: You've encountered something
in the compiler which is not implemented. Please file a bug (see instructions
here: http://mono-project.com/Bugs)
/home/rolf/test/<MyGenerator> (1,1) : Error VBNC99999: There was an exception
during code generation.
/home/rolf/test/<MyGenerator> (1,1) : Error VBNC99999: Unexpected error: There
has been an internal error in the compiler: Operator CType is not defined for
types 'System.DateTime' and 'System.Nullable`1[System.DateTime]'
at vbnc.CTypeExpression.GenerateCTypeCode (vbnc.EmitInfo Info, System.Type
DestinationType, System.Type SourceType) [0x006bb] in
/mono/main/git/mono-basic/vbnc/vbnc/source/Expressions/Conversions/CTypeExpression.vb:258
at vbnc.CTypeExpression.GenerateCodeInternal (vbnc.EmitInfo Info) [0x0024d]
in
/mono/main/git/mono-basic/vbnc/vbnc/source/Expressions/Conversions/CTypeExpression.vb:102
at vbnc.Expression.GenerateCode (vbnc.EmitInfo Info) [0x000dd] in
/mono/main/git/mono-basic/vbnc/vbnc/source/Expressions/Expression.vb:195
Compilation took 00:00:01.8444480
rolf at linux:~/test>
--
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