Page MenuHomeFeedback Tracker

Enscript typedefs are resolved too late
Assigned, UrgentPublic

Description

The code below should work, as the typedef resolves to float. That matches the base class method signature. But well ... it does not work. Either the typedefs are not resolved at all or too late aka after the class structure was processed.

class CBase
{
    void DoSomething(float number)
    {
    }
}

typedef float TFloatAlias;
class CDerived : CBase
{
    override void DoSomething(TFloatAlias number) //ERROR: Function 'DoSomething' is marked as override, but there is no function with this name in the base class
    {
    }
}

Edit: Addition - The following also fails - indicating yet again that the resolve of typedefs is not working out well

typedef int TIntAlias;
Print(TIntAlias.MAX) //ERROR: Can't find variable MAX

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Additional Information

Please forward to the enfusion team for fixing.

Event Timeline

Arkensor created this task.Oct 6 2020, 11:29 AM
Arkensor added a subscriber: Geez.

@Geez how many more valid bug reports until I unlock the golden feedback tracker?

Arkensor updated the task description. (Show Details)Oct 6 2020, 12:21 PM
Geez changed the task status from New to Assigned.Oct 7 2020, 12:12 PM