May 22, 2005 DMD 0.125: Aliasing an interface array after another interface using the alias makes it impossible to implement the interface | ||||
---|---|---|---|---|
| ||||
This code fails compilation on DMD 0.125 with the error "class <module>.C interface function I.m isn't implemented"; it should work. interface S { } interface I { void m (SList); } alias S [] SList; class C : I { void m (SList o) { } } void main () { new C; } Moving the alias above interface I corrects the problem. I can work around the problem doing this temporarily, but this is from automatically-generated code. |
June 01, 2005 Re: DMD 0.125: Aliasing an interface array after another interface using the alias makes it impossible to implement the interface | ||||
---|---|---|---|---|
| ||||
Posted in reply to Burton Radons | -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Burton Radons schrieb am Sun, 22 May 2005 11:19:34 -0700: > This code fails compilation on DMD 0.125 with the error "class ><module>.C interface function I.m isn't implemented"; it should work. > > interface S > { > } > > interface I > { > void m (SList); > } > > alias S [] SList; > > class C : I > { > void m (SList o) { } > } > > void main () > { > new C; > } > > Moving the alias above interface I corrects the problem. I can work around the problem doing this temporarily, but this is from automatically-generated code. Added to DStress as http://dstress.kuehne.cn/run/a/alias_24_A.d http://dstress.kuehne.cn/run/a/alias_24_B.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFCncIt3w+/yD4P9tIRAma4AKChSY5zY4blTq4MidButwPnZdTbAQCg0Pr2 4kI1Q6ktogbtvqRX7JaWHc8= =UVj5 -----END PGP SIGNATURE----- |
Copyright © 1999-2021 by the D Language Foundation