From 394e6910d0eba8d9c4fcc4d10f66b68f3c097b3d Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 2 Aug 2018 16:51:55 +0200 Subject: pkg/compiler: refactor checkType checkType is too long and complex. Move basic type checks and args checks into separate functions. Update #538 --- pkg/compiler/testdata/errors.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/compiler/testdata/errors.txt') diff --git a/pkg/compiler/testdata/errors.txt b/pkg/compiler/testdata/errors.txt index 3c2cb57ae..b0e6ac834 100644 --- a/pkg/compiler/testdata/errors.txt +++ b/pkg/compiler/testdata/errors.txt @@ -321,7 +321,7 @@ foo$207(a ptr[in, templ_struct2[1]]) # fmt -foo$fmt0(a fmt) ### wrong number of arguments for type fmt, expect format, value +foo$fmt0(a ptr[in, fmt]) ### wrong number of arguments for type fmt, expect format, value foo$fmt1(a fmt[dec, int8]) ### fmt can't be syscall argument foo$fmt2(a ptr[in, fmt[dec, ptr[in, int8]]]) ### bad fmt value ptr, expect an integer foo$fmt3(a ptr[in, fmt[foo, int8]]) ### unexpected value foo for format argument of fmt type, expect [dec hex oct] -- cgit mrf-deployment