From 59ba551d3b2d60a3542d080ac3bc196511c8b0c6 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 1 Sep 2019 22:41:29 +0300 Subject: [PATCH] u8 + i32 warnings --- compiler/parser.v | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compiler/parser.v b/compiler/parser.v index 39f0bb53cd2b8d..8f34337ad57e4b 100644 --- a/compiler/parser.v +++ b/compiler/parser.v @@ -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`') } }