Bug 1567 – call to private super-constructor should not be allowed

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2007-10-10T08:14:00Z
Last change time
2014-02-16T15:24:20Z
Keywords
accepts-invalid, patch
Assigned to
nobody
Creator
konfusious
Blocks
3108

Comments

Comment #0 by konfusious — 2007-10-10T08:14:24Z
When inheriting from a super class with private constructor, a call to the private super-constructor from inside the inheriting class is not recognized as error. Example: module abstractClass; abstract class AbstractClass { private this() { } } --------------------- import abstractClass; class InheritingClass : AbstractClass { public this() { super(); } }
Comment #1 by yebblies — 2011-06-11T14:44:53Z
Comment #2 by bugzilla — 2011-08-12T19:46:08Z