Bug 324701 (MONO82027) - [GMCS] CS0693 not reported for type parameter name clash
Summary: [GMCS] CS0693 not reported for type parameter name clash
Status: RESOLVED FIXED
Alias: MONO82027
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.2
Hardware: Other All
: P3 - Medium : Major
Target Milestone: ---
Assignee: Marek Safar
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-07 10:33 UTC by Gert Driesen
Modified: 2011-06-03 20:37 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 20:43:18 UTC


---- Reported by gert.driesen@pandora.be 2007-07-07 03:33:00 MST ----

gmcs currently does not report CS0693 when a type parameter has the the 
same name as the type parameter from the declaring type.

To reproduce, compile the following code snippet (using 
gmcs /target:library test.cs):

class SlowConvert<K, T>
{
  public void Reverse<K, B> ()
  {
  }
}

Expected result:

test2.cs(3,22): warning CS0693: Type parameter 'K' has the same name as 
the type parameter from outer type 'SlowConvert<K,T>'

Actual result:

No warning.



---- Additional Comments From marek.safar@seznam.cz 2007-08-21 10:30:11 MST ----

Changed to major.

Comment 2 Marek Safar 2008-09-22 15:11:58 UTC
Fixed in SVN.