Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Code Completion    [ Add a report in this area ]  
Report #:  94943   Status: Closed
method references are declared "errorneous type"
Project:  Delphi Build #:  15.0.3953.35171
Version:    15.1 Submitted By:   Markus Humm
Report Type:  Basic functionality failure Date Reported:  6/9/2011 5:56:42 AM
Severity:    Infrequently encountered problem Last Updated: 8/18/2012 8:56:05 PM
Platform:    All platforms Internal Tracking #:  
Resolution: Cannot Reproduce (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: 5
Description
Having source code with a class which contains events (means fields which point to TNotifyEvent event handlers) which does compiler without errors I get "errorneous types" in the popup I get when I type self.

See attached screenshot. Since the class compiles the references point to valid types (e.g. TNotifyEvent) so the popup is just wrong.
Steps to Reproduce:
1. open or create VCL application

2. add fMyEvent:TNotifyEvent; to the
   private section

3. add a TButton and double click it to get
   a OnCLick handler.

4. inside the handler type self. and wait until
   the popup opens

5. look at fMyEvent's type there
Workarounds
None
Attachment
screenshot.zip
Comments

Markus Humm at 6/9/2011 5:58:39 AM -
Adding the attachment via web client failed. Any news about that planned fixed web client?!?!

Markus Humm at 6/9/2011 11:02:39 AM -
Added the attachment now from home via Win32 client.

Tomohiro Takahashi at 6/9/2011 11:51:52 PM -
I can not reproduce your issue with [Steps] you provide.
So, could you please attach the simplest sample project to reproduce your issue?

Markus Humm at 6/25/2011 8:46:48 AM -
I'll try as soon as I find the time to do this, but the attached screenshot at least shows that there is some issue somewhere.

Server Response from: ETNACODE01