[Mono-bugs] [Bug 424663] DefineField ignores custom modifier on generic types

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Sep 17 11:35:34 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=424663

User rkumpera at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=424663#c5


Rodrigo Kumpera <rkumpera at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
          Component|generics                                        |C#
            Product|Mono: Runtime                                   |Mono: Compilers




--- Comment #5 from Rodrigo Kumpera <rkumpera at novell.com>  2008-09-17 09:35:34 MDT ---
This is a compiler bug unless I'm missing something here.

The following piece of code:

AssemblyBuilder assembly = ... //generic AB setup
TypeBuilder tb = module.DefineType ("Test", TypeAttributes.Public);

tb.DefineField ("str", typeof (string), new Type[] { typeof (IsVolatile) }, new
Type [0], FieldAttributes.Static);
tb.CreateType ();

assembly.Save ("tst.dll");

does generate an assembly with:

field  privatescope static  string modreq
([mscorlib]System.Runtime.CompilerServices.IsVolatile) str

Marek, please confirm if my test is relevant to what MCS does or is something
else.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list