Hi!
Is it correct,that this code doesn't compile:

module foo;

struct Foo
{
    private int bar;
    alias bar this;
}

///////////////////////////////

module main;

import foo;

void main()
{
    Foo b;
int a = b;//Error:undefined identifier 'bar', did you mean 'template back(T) //if (!isNarrowString!(T[]))'? b = a;//cannot implicitly convert expression (a) of type int to Foo
}
?

Reply via email to