D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.

Issue 1567

Summary: call to private super-constructor should not be allowed
Product: D Reporter: Slavisa Radic <konfusious>
Component: dmdAssignee: 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

Description Slavisa Radic 2007年10月10日 08:14:24 UTC
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 yebblies 2011年06月11日 14:44:53 UTC
https://github.com/D-Programming-Language/dmd/pull/113 

AltStyle によって変換されたページ (->オリジナル) /