all: zig fmt and rename "@XToY" to "@YFromX"
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
This commit is contained in:
committed by
Andrew Kelley
parent
a6c8ee5231
commit
50339f595a
@@ -1,8 +1,10 @@
|
||||
const x : u8 = 300;
|
||||
export fn entry() usize { return @sizeOf(@TypeOf(x)); }
|
||||
const x: u8 = 300;
|
||||
export fn entry() usize {
|
||||
return @sizeOf(@TypeOf(x));
|
||||
}
|
||||
|
||||
// error
|
||||
// backend=stage2
|
||||
// target=native
|
||||
//
|
||||
// :1:16: error: type 'u8' cannot represent integer value '300'
|
||||
// :1:15: error: type 'u8' cannot represent integer value '300'
|
||||
|
||||
Reference in New Issue
Block a user