« Bugzilla Issues Index
#3843 — Make 'super()' in non-derived constructors an early error
- bug_id:
3843
- creation_ts:
2015-02-12 03:11:00 -0800
- short_desc:
Make 'super()' in non-derived constructors an early error
- delta_ts:
2015-07-10 08:34:58 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 32: February 2, 2015 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
Dmitry Lomov
- assigned_to:
Allen Wirfs-Brock
- cc:
erik.arvidsson
- commentid:
12366
- comment_count:
0
- who:
Dmitry Lomov
- bug_when:
2015-02-12 03:11:41 -0800
The current spec allows 'super()' in non-derived constructors but it is specced to fail ('this' is always initialized in derived constructors).
But whether the constructor is 'derived' or 'base' is syntactically determined, therefore it will be consistent, as in other cases, to make it an early error.
- commentid:
12371
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2015-02-12 07:57:20 -0800
fixed in rev33 editor's draft
- commentid:
12382
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2015-02-12 12:17:34 -0800
fixed in rev33