www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - compiler clash(super class constructor call in a non constructor)

reply k2 <k2_member pathlink.com> writes:
void main()
{
super();
}

dmd test.d

(and then clash) --- DMD v0.113 win32
Feb 18 2005
parent =?UTF-8?B?VGhvbWFzIEvDvGhuZQ==?= writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

k2 wrote:

| void main()
| {
| super();
| }
|
|
|>dmd test.d
|
| test.d(): super class constructor call must be in a constructor
| (and then clash)
|
| ---
| DMD v0.113 win32

Added to DStress as
http://dstress.kuehne.cn/nocompile/super_11.d

Thomas

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFCFmcs3w+/yD4P9tIRAmPxAKCYS7VEFRRv/lHH+dvzBf7w4B4KcQCeOFpF
VxskQ5f/aRkBOWAxgI+YobE=
=qPcp
-----END PGP SIGNATURE-----
Feb 18 2005