[Mono-bugs] [Bug 364670] InvalidCastException in Mono.CSharp.Attribute. ResolveConstructor

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Feb 26 08:14:16 EST 2008


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

User lauren.bedoule at gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=364670#c2





--- Comment #2 from lauren bedoule <lauren.bedoule at gmail.com>  2008-02-26 06:14:16 MST ---
I didn't manage to reproduce the problem with simpler code. Apparently, as soon
as I mark my method with the extern keyword:

- mcs provide the invalidCastException when not linking to mscorlib (-nostdlib
-noconfig)
- mcs is expecting the dllImportAttribute, yet it should only expect one
attribute ("A method marked extern should also be marked with an attribute,
*for example*, the DllImport attribute.") when linking to mscorlib

Please find attached an example of a method marked extern, with an attribute
different from dllImportAttribute. This code compiles with csc, and fails with
mcs.


-- 
Configure bugmail: https://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