1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

u8 + i32 warnings

This commit is contained in:
Alexander Medvednikov 2019-09-01 22:41:29 +03:00
parent 3bd7bcfac3
commit 59ba551d3b

View File

@ -1611,6 +1611,12 @@ fn (p mut Parser) name_expr() string {
p.error('undefined: `$name`')
}
else {
if orig_name == 'i32' {
println('`i32` alias was removed, use `int` instead')
}
if orig_name == 'u8' {
println('`u8` alias was removed, use `byte` instead')
}
p.error('undefined: `$orig_name`')
}
}