remove @minValue,@maxValue; add std.math.minInt,maxInt

closes #1466
closes #1476
This commit is contained in:
Andrew Kelley
2018-10-26 14:59:58 -04:00
parent 40b7652a6d
commit 2b395d4ede
55 changed files with 310 additions and 398 deletions

View File

@@ -535,12 +535,12 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
);
cases.add(
"optional pointer to void in extern struct",
"bit count of @IntType too large",
\\comptime {
\\ _ = @IntType(false, @maxValue(u32) + 1);
\\ _ = @IntType(false, @import("std").math.maxInt(u32) + 1);
\\}
,
".tmp_source.zig:2:40: error: integer value 4294967296 cannot be implicitly casted to type 'u32'",
".tmp_source.zig:2:57: error: integer value 4294967296 cannot be implicitly casted to type 'u32'",
);
cases.add(