[Mono-bugs] [Bug 629373] New: SizeParamIndex:=x needs an explicit xS, but .Net doesn't

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Aug 7 17:16:56 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=629373

http://bugzilla.novell.com/show_bug.cgi?id=629373#c0


           Summary: SizeParamIndex:=x needs an explicit xS, but .Net
                    doesn't
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.6.x
          Platform: i686
        OS/Version: openSUSE 11.3
            Status: NEW
          Severity: Enhancement
          Priority: P5 - None
         Component: Basic
        AssignedTo: rkvinge at novell.com
        ReportedBy: simar at gmx.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.8)
Gecko/20100723 SUSE/3.6.8-0.1.1 Firefox/3.6.8

If option strict is on (which should be the default when using vbnc, if I
understood correctly) then a MarshalAs using SizeParamIndex expects the
position of the size parameter to be explicitly a short. .Net doesn't require
that.

Reproducible: Always

Steps to Reproduce:
1. Try MarshalAs with SizeParamIndex:=2 and option explicit on
Actual Results:  
A hint to use a System.Int16 for SizeParamIndex

Expected Results:  
A compiled binary.

-- 
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