#zig build-obj { --name test -fno-emit-bin -Mroot=test.zig #} #write test.zig { export fn f() void { var bad: bool = undefined; bad[0] = bad[0]; } export fn g() void { const bad: bool = undefined; _ = bad[0]; } #} #update #check errors { test.zig:3:8: error: type 'bool' does not support indexing test.zig:3:8: note: operand must be an array, slice, tuple, or vector test.zig:7:12: error: type 'bool' does not support indexing test.zig:7:12: note: operand must be an array, slice, tuple, or vector #}