Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=77002 --- shadow/77002 2005-12-14 23:28:05.000000000 -0500 +++ shadow/77002.tmp.10117 2005-12-14 23:28:05.000000000 -0500 @@ -0,0 +1,67 @@ +Bug#: 77002 +Product: Mono: Compilers +Version: 1.1 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Wishlist +Component: C# +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: TypeForwardToAttribute support + +We don't support TypeForwardToAttribute which replaces type references with + type references to another "destination" type. + +seealso: +http://msdn2.microsoft.com/en-us/library/system.runtime.compilerservices.typeforwardedtoattribute.aspx +http://www.heege.net/blog/PermaLink,guid,8d076332-4fb0-44b5-a829-4c4d653de2d6.aspx + +This attribute disappears when emitted to an assembly. + +-------- +using System.Runtime.CompilerServices; +using System; +using System.Reflection; + +[assembly:CLSCompliant (true)] +[assembly:TypeForwardedTo (typeof (string))] +public class Test +{ + public static void Main () + { + foreach (Attribute a in Assembly.GetExecutingAssembly +().GetCustomAttributes (true)) + Console.WriteLine (a.GetType ()); + } +} +-------- + + +Actual Results: + +-- Compile with gmcs and run: + +System.CLSCompliantAttribute +System.Runtime.CompilerServices.RuntimeCompatibilityAttribute +System.Runtime.CompilerServices.TypeForwardedToAttribute + + +Expected Results: + +-- Compile with csc and run: + +System.Runtime.CompilerServices.RuntimeCompatibilityAttribute +System.Runtime.CompilerServices.CompilationRelaxationsAttribute +System.CLSCompliantAttribute + + +How often does this happen? + +consistently. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
