[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



           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 (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
  at vbnc.CTypeExpression.GenerateCodeInternal (vbnc.EmitInfo Info) [0x0024d]
  at vbnc.Expression.GenerateCode (vbnc.EmitInfo Info) [0x000dd] in
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