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: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- r...@linux:~/test> cat test.vb class test shared function dt as nullable(of datetime) return DateTime.Now end function end class r...@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 r...@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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
