Bugzilla – Bug 320262
[gmcs] Compile error when casting to generic types
Last modified: 2007-09-15 21:24:23 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)