Bugzilla – Bug 319616
[GMCS] Can't handle custom attributes for type parameters
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by jankit@novell.com 2005-11-23 02:21:33 MST ---- Please fill in this template when reporting a bug, unless you know what you are doing. Description of Problem: test case: ********* 1 using System; 2 3 [AttributeUsage(AttributeTargets.GenericParameter)] 4 class GenParAttribute : Attribute { 5 } 6 7 class cons <[GenPar] A> { 8 public void abc <[GenPar] M> () { 9 } 10 } 11 12 class Test { 13 public static void Main () 14 { 15 } 16 } ********* gmcs gives: syntax error, got token `OP_LT' bb.cs(7,13): error CS8025: Parsing error Compilation failed: 1 error(s), 0 warnings csc compiles it fine. The test case is attached. ---- Additional Comments From jankit@novell.com 2005-11-23 02:22:00 MST ---- Created an attachment (id=168867) test.cs ---- Additional Comments From martin@ximian.com 2005-12-07 14:30:22 MST ---- Surprisingly, the grammar changes were really simple. Now working on the implementation. ---- Additional Comments From martin@ximian.com 2005-12-07 17:19:32 MST ---- Fixed in SVN. Imported an attachment (id=168867) Unknown operating system unknown. Setting to default OS "Other".