[Mono-bugs] [Bug 77002][Wis] New - TypeForwardToAttribute support
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Dec 14 23:28:05 EST 2005
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 atsushi at ximian.com.
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: rharinath at novell.com
+ReportedBy: atsushi at ximian.com
+QAContact: mono-bugs at ximian.com
+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.
More information about the mono-bugs
mailing list