u8 + i32 warnings

pull/1819/head
Alexander Medvednikov 2019-09-01 22:41:29 +03:00
parent 3bd7bcfac3
commit 59ba551d3b
1 changed files with 6 additions and 0 deletions

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`')
}
}