aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/assign_null_to_non-optional_pointer.zig
blob: ca36dbfbfbdf7b0963ab80dc5a16229d4a1de99b (plain)
1
2
3
4
5
6
7
8
9
const a: *u8 = null;

export fn entry() usize { return @sizeOf(@TypeOf(a)); }

// error
// backend=stage2
// target=native
//
// :1:16: error: expected type '*u8', found '@TypeOf(null)'