Bug 319616 (MONO76797) - [GMCS] Can't handle custom attributes for type parameters
Summary: [GMCS] Can't handle custom attributes for type parameters
Status: RESOLVED FIXED
Alias: MONO76797
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-23 09:21 UTC by Jain Ankit
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
test.cs (222 bytes, text/plain)
2005-11-23 09:22 UTC, Thomas Wiest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:39:02 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".