Bugzilla – Bug 317272
[GMCS] Wrong CS0039 error
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by carlos@unixmexico.org 2005-02-23 03:54:07 MST ---- gmcs marks a CS0039 error when trying to cast from T [] arrays to a defined array type. This doesn't exist in vs 2005 beta. Steps to reproduce the problem: 1. Compile sample above and compile with gmcs Actual Results: 39.cs(12) error CS0039: as operator can not convert from `T[]' to `int[]' Compilation failed: 1 error(s), 0 warnings Expected Results: nothing How often does this happen? Always Additional Information: Using Mono HEAD ---- Additional Comments From carlos@unixmexico.org 2005-02-23 04:00:11 MST ---- Created an attachment (id=167456) Sample ---- Additional Comments From carlos@unixmexico.org 2005-02-23 04:02:29 MST ---- I've reviewed and it looks like it also happens when trying to cast from SomeClass [] to AnotherClass [] using as. ---- Additional Comments From carlos@unixmexico.org 2005-02-25 12:55:54 MST ---- Created an attachment (id=167457) Patch with a small possible solution ---- Additional Comments From martin@ximian.com 2005-03-01 23:26:09 MST ---- Fixed in SVN. Imported an attachment (id=167456) Imported an attachment (id=167457) Unknown operating system unknown. Setting to default OS "Other".