Reproducer:
export module m:a;
static int a = 32;
export module m:b;
import :a;
int b() {
return a;
}
Currently the reproducer is accepted. But we expect the compiler to reject it and saying that the partition b can't access the static variable 'a' in partition a.