Does the compiler know if a union field is never used?

@import isn’t lazy. It always imports, regardless of where it’s declared, because it has to be evaluated at comptime.

Sidenote: the path argument has to be resolved even earlier, at “parsetime”, see this topic.

4 Likes