diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-08-02 16:51:55 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-08-02 16:57:32 +0200 |
| commit | 394e6910d0eba8d9c4fcc4d10f66b68f3c097b3d (patch) | |
| tree | 2cc379da69ef4df3cf4e5a87267e5f202a3863c5 /pkg/compiler/testdata | |
| parent | 1baf121c2fc6a3b92f01a48633d59290ff183476 (diff) | |
pkg/compiler: refactor checkType
checkType is too long and complex.
Move basic type checks and args checks into separate functions.
Update #538
Diffstat (limited to 'pkg/compiler/testdata')
| -rw-r--r-- | pkg/compiler/testdata/errors.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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] |
