Visual D expander bug
Rainer Schuetze
r.sagitario at gmx.de
Wed Jun 12 07:22:43 UTC 2019
On 07/06/2019 11:27, Amex wrote:
> https://i.ibb.co/2FLFrBV/VisBug.jpg
>
> With this image you can see that the highlighted line cannot be expanded
> even though it clearly is showing the information of the type in the
> value and it clearly is expandable.
>
>
> The code is
>
>
> import std.stdio;
>
> struct s
> {
> int x;
> private int y;
> double z;
> }
>
> @("interface I") interface I
> {
> void foo();
> }
>
> abstract class A : I
> {
>
> }
>
> class C : A
> {
> private string c = "fsdadf";
> string cc = "public";
> int[3] arr3;
>
> @PIgnore
>
> void foo()
> {
> writeln("x");
> }
>
> this()
> {
>
> }
> }
>
> class D : C
> {
> double f = 3.24;
>
> }
>
> int main()
> {
> writeln("Hello D World!\n");
> I i = new D();
>
> auto x = typeid(cast(Object)i);
>
> return 0;
> }
>
>
I wrecked expanding structs when slightly rearranging code for the
dynamic type evaluation of classes. Sorry for the trouble, should be
fixed in the next version.
More information about the Digitalmars-d-ide
mailing list