D issues are now
tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Summary: |
call to private super-constructor should not be allowed |
Product: |
D
|
Reporter: |
Slavisa Radic <konfusious> |
Component: |
dmd | Assignee: |
No Owner <nobody> |
Status: |
RESOLVED
FIXED
|
Severity: |
normal
|
CC: |
bugzilla, yebblies
|
Priority: |
P2
|
Keywords: |
accepts-invalid, patch |
Version: |
D1 (retired) |
Hardware: |
x86 |
OS: |
Linux |
Issue Depends on: |
Issue Blocks: |
3108
|
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();
}
}