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

Submitted by:  Klaus Treichel <ktreichel>
Submitted on:  Tue 20 Apr 2004 11:33:30 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned 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>
Project 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>
Project Administrator

 

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

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 19 May 2004 04:10:06 PM UTCt3rmin4t0rStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Tue 20 Apr 2004 11:33:30 AM UTCktreichelAttached File-=>Added testcscc_1.cs, #1207

Back to the top


Powered by Savane 3.1-cleanup1