this code compiles ok:
void boo () {
immutable std = 42;
import std.conv;
}
but this one fails with "declaration z02.boo.std is already defined":
void boo () {
import std.conv;
immutable std = 42;
}
i think both variants should have the same behavior: either both should work, or both should fail.
Comment #1 by robert.schadek — 2024-12-13T18:45:58Z