Comment #0 by dlang-bugzilla — 2015-04-02T00:51:12Z
/// a.d ///
module a;
int a;
/// b.d ///
import a;
void main()
{
a = 42;
}
///////////
Compiler says:
b.d(4,5): Error: a is not an lvalue
Ideally, it should say something along:
b.d(4,5): Error: cannot assign to module "a", did you mean "a.a" of type "int"?
Comment #1 by robert.schadek — 2024-12-13T18:41:46Z