Bug 320262 (MONO77483) - [gmcs] Compile error when casting to generic types
Summary: [gmcs] Compile error when casting to generic types
Status: RESOLVED FIXED
Alias: MONO77483
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Linux
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-06 17:46 UTC by Anders Lindström
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
Testcase (302 bytes, text/plain)
2006-02-06 17:47 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:47:28 UTC


---- Reported by anders@tlabwest.se 2006-02-06 10:46:27 MST ----

Description of Problem:
The attached file doesn't compile with gmcs (Mono 1.1.13), but works fine
in VS2005.

Steps to reproduce the problem:
1. gmcs testcase.cs

Actual Results:
testcase.cs(27,19): error CS0452: The type 'TestCase.ITest' must be a
reference type in order to use it as type paramenter 'T' in the generic
type or method 'TestCase.CGenericTest<T,V>'.

Expected Results:
Should compile without errors.

How often does this happen? 
Always



---- Additional Comments From anders@tlabwest.se 2006-02-06 10:47:35 MST ----

Created an attachment (id=169233)
Testcase




---- Additional Comments From martin@ximian.com 2006-02-07 17:43:22 MST ----

Fixed in SVN.

Imported an attachment (id=169233)