test {
const S = struct {a: i32, b: i32};
_ = comptime @offsetOf(S, "b"); // error: unable to resolve comptime value
}
This is marked accepted, because at least one of the two things will happen:
- Trying to observe the memory layout of a non-well-defined-memory-layout will be a compile error
- Observing the memory layout of a non-well-defined-memory-layout will give a runtime value
Currently this is marked as accepted with the latter.
This is marked accepted, because at least one of the two things will happen:
Currently this is marked as accepted with the latter.