public imports

Sjoerd Nijboer dlang at sjoerdnijboer.com
Wed Dec 5 21:13:29 UTC 2018


A small question.
Is it intended behaviour that public imports inside function 
calls fail with the message "Error: found public instead of 
statement", or is it an underdocumented feature?

void foo()
{
     public import bar;
}


More information about the Digitalmars-d-learn mailing list