Bug 317272 (MONO72887) - [GMCS] Wrong CS0039 error
Summary: [GMCS] Wrong CS0039 error
Status: RESOLVED FIXED
Alias: MONO72887
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Blocker
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-23 10:54 UTC by Carlos Alberto Cortez
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
Sample (203 bytes, text/plain)
2005-02-23 11:00 UTC, Thomas Wiest
Details
Patch with a small possible solution (935 bytes, patch)
2005-02-25 19:55 UTC, Thomas Wiest
Details | Diff

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