Replace @typeOf with @TypeOf in all zig source

This change was mostly made with `zig fmt` and this also modified some whitespace. Note that in some files, `zig fmt` produced incorrect code, so the change was made manually.
This commit is contained in:
Robin Voetter
2019-12-09 21:56:19 +01:00
committed by Andrew Kelley
parent f0ee0688f2
commit 4b4fbe3887
125 changed files with 508 additions and 504 deletions

View File

@@ -258,12 +258,12 @@ pub fn addCases(cases: *tests.CompareOutputContext) void {
cases.add("order-independent declarations",
\\const io = @import("std").io;
\\const z = io.stdin_fileno;
\\const x : @typeOf(y) = 1234;
\\const x : @TypeOf(y) = 1234;
\\const y : u16 = 5678;
\\pub fn main() void {
\\ var x_local : i32 = print_ok(x);
\\}
\\fn print_ok(val: @typeOf(x)) @typeOf(foo) {
\\fn print_ok(val: @TypeOf(x)) @TypeOf(foo) {
\\ const stdout = &io.getStdOut().outStream().stream;
\\ stdout.print("OK\n", .{}) catch unreachable;
\\ return 0;