Closed CZDanol closed 7 years ago
well this would fail to compile. module a
is never imported in any of those 2 files, it must be imported in module b
for it to work. So if it fails to compile it shouldn't work there and this behavior is also expected from the programmer because it could be 2 separate "projects" there because they have no dependency on each other whatsoever.
I have a typo in module b, there should be import c;
That doesn't change your code?
O_o typo again, import a;
I will put together a sample project.
Well in that case it works for me, try using longer struct & field names than one letter, one letter doesn't trigger intellisense on global scope
// hello.d
module hello;
import foo;
void main() {
b // includes bar
bar. // shows world
}
// foo.d
module foo;
import bar;
Bar bar;
// bar.d
module bar;
struct Bar
{
int world;
}
I've experienced this in my real project with real identifiers. Sorry, my bad for not finding the correct error case, will report when I document it properly.
On which scope? Members of the variable or completing the global variable name?
variable members
Hm then it's a weird bug, try finding a reproducable test case. It could be unicode characters in that file (they sometimes mess up things), it could be because it uses something else (like a module name) instead of the variable, etc.
Yes, I am so sorry for annying with not-working-bug-report-cases :/
In module a I have:
in module b:
and when I have module c: