Settings require fields to be defined lexically before constructor

VERIFIED WONTFIX

Status

Tamarin
Self-hosting compiler (ESC)
VERIFIED WONTFIX
10 years ago
8 years ago

People

(Reporter: Lars T Hansen, Assigned: Lars T Hansen)

Tracking

Details

(Assignee)

Description

10 years ago
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.
(Assignee)

Updated

10 years ago
Status: NEW → ASSIGNED
(Assignee)

Updated

10 years ago
Assignee: nobody → lhansen
Status: ASSIGNED → NEW
(Assignee)

Updated

10 years ago
Status: NEW → ASSIGNED
(Assignee)

Comment 1

10 years ago
Presumably the fix for bug 432185 will fix this problem too.
(Assignee)

Updated

9 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → WONTFIX

Updated

8 years ago
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.