Closed Bug 424934 Opened 16 years ago Closed 15 years ago

Settings require fields to be defined lexically before constructor

Categories

(Tamarin Graveyard :: Self-hosting compiler (ESC), defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED WONTFIX

People

(Reporter: lhansen, Assigned: lhansen)

Details

This crashes the compiler with a SyntaxError:

class C {
    function C(p) : x=p {}
    var x;
}

The reason is that code that processes the constructor requires the x property to be defined lexically before C.  This is wrong; the constructor can't be processed until the entire class body has been seen.
Status: NEW → ASSIGNED
Assignee: nobody → lhansen
Status: ASSIGNED → NEW
Status: NEW → ASSIGNED
Presumably the fix for bug 432185 will fix this problem too.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.