Skip to content

Commit

Permalink
u8 + i32 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
medvednikov committed Sep 1, 2019
1 parent 3bd7bcf commit 59ba551
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compiler/parser.v
Original file line number Diff line number Diff line change
Expand Up @@ -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`')
}
}
Expand Down

0 comments on commit 59ba551

Please sign in to comment.