Should '@disable this()' disable 'static opCall()'?
Ali Çehreli via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jan 30 14:41:35 PST 2015
I am thinking about opening a bug with the following code:
struct S
{
@disable this();
static void opCall()
{}
}
void main()
{}
Error: struct deneme.S static opCall is hidden by constructors and can
never be called
Which seems to be due to the following change:
https://github.com/D-Programming-Language/dmd/commit/79ae211e71cf0937523010e39f7f0981e9550904
What do you think?
Ali
More information about the Digitalmars-d-learn
mailing list