Problem
Several analyses are imported only by their own tests: null_safety.zig, bounds_checking.zig, overflow_detection.zig, taint_tracking.zig, drop_safety.zig, information_flow.zig, capability_types.zig, and variance.zig (used only by typescript_types.zig). TypeInferencer is a stub. Separately, Type.isSubtype treats arrays as covariant with no mutability check (comment: "covariant for immutable"), which is the classic array-covariance hole.
Evidence (origin/main @ d4b219507)
Scope
- For each module: call it from
TypeChecker.check()with a negative test, or delete it. - Make mutable arrays/slices invariant; keep covariance only for immutable views.
Acceptance criteria
- Every listed module is either wired (with a failing-program test) or removed.
[]Subis not assignable to a mutable[]Super.
Links
Part of #814.