bugDotGNU Portable.NET - Bugs: bug #8629, Type resolution not correct if...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #8629: Type resolution not correct if property with name of class exists

Submitter:  Klaus Treichel <ktreichel>
Submitted:  Tue 20 Apr 2004 11:33:30 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Wed 19 May 2004 04:10:06 PM UTC, comment #1: 

Fixed in CVS (though not properly... it's always a hack)


Gopal.V <t3rmin4t0r>
Group administrator
Tue 20 Apr 2004 11:33:30 AM UTC, original submission:  

The call to static functions of a class do not compile if there exists a property with the name of the class.

See property Type in attaches file.

The file compiles with MS .Net 1.1 but with cscc i get the following error:

$ cscc testcscc_1.cs
testcscc_1.cs:15: no matching method for call to `GetType(System.String, bool)'
testcscc_1.cs:15: incompatible types in assignment: no conversion from `invalid
type' to `System.Type'

The error occures when i tried to build mono's System.Web assemly with pnet.

Klaus Treichel <ktreichel>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #1224:  testcscc_1.cs added by ktreichel (383B - application/octet-stream - testcase to verify the wrong behavoiur)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-05-19 t3rmin4t0r StatusNone Fixed
    Open/ClosedOpen Closed
2004-04-20 ktreichel Attached File- Added testcscc_1.cs, #1207

Back to the top

Powered by Savane 3.13-bb6a.
Corresponding source code