Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi Prism/IDE/Code Editor    [ Add a report in this area ]  
Report #:  88563   Status: Open
CC don't see class alias in other assembly
Project:  Embarcadero Prism Build #:  4.0.25.791
Version:    1.1 Submitted By:   Patrick Lanz
Report Type:  Minor failure / Design problem Date Reported:  10/1/2010 8:29:31 AM
Severity:    Commonly encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    64 Bit Internal Tracking #:   280681
Resolution: Need More Info (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
When an assembly references another assembly with a class alias on it, CC doesn't see the class alias.


Added by Sysop
<<<<<<
CC is 'Code Completion'
>>>>>>
Steps to Reproduce:
1. Create a new class library (ClassLibrary1).

2. Replace Class1.pas with:

namespace ClassLibrary1;

interface

type
  Class1 = public class
  public
  end;
  Class1Alias = public Class1;
  
implementation

end.

3. Create a new class library solution in the same project (ClassLibrary2).

4. In ClassLibrary2, make a reference to ClassLibrary1.

5. Replace the Class1.pas file of ClassLibrary2 with:

namespace ClassLibrary2;

interface

  uses
    ClassLibrary1;
type
  Class2 = public class
  public
    method DoNothing;
  end;
  
implementation

method Class2.DoNothing;
begin
  var a :  // <== No Class1Alias in CC
end;

end.
Workarounds
None
Attachment
None
Comments

Tomohiro Takahashi at 10/2/2010 7:20:20 AM -
> Build No: 777
Is it Beta Build?
What version of Delphi Prism do you use, 2011 or XE?

> CC ...
What is CC? Is it 'Code Completion'?

Tomohiro Takahashi at 10/4/2010 12:37:47 AM -
I confirmed your issue with Delphi Prism XE(4.0.25.791). So, I changed Build No field as Sysop.

Server Response from: ETNACODE01