From a50398545a325e46db14f4f3cf985938693e1456 Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Tue, 3 Sep 2019 18:54:35 +0200 Subject: pkg/compiler: detect unused template params --- pkg/compiler/testdata/errors.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/compiler/testdata/errors.txt') diff --git a/pkg/compiler/testdata/errors.txt b/pkg/compiler/testdata/errors.txt index 8c44694bb..bd7182252 100644 --- a/pkg/compiler/testdata/errors.txt +++ b/pkg/compiler/testdata/errors.txt @@ -298,7 +298,7 @@ type templ_struct1[STR] { } type templ_struct2[A] { - f B ### unknown type B + f B } type templ_base0[TYPE] { @@ -323,7 +323,7 @@ foo$202(a templ0) ### template templ0 needs 2 arguments instead of 0 foo$203(a type0[42]) ### type type0 is not a template foo$204(a ptr[in, templ_struct0[42, int8]]) foo$205(a ptr[in, templ_struct0[int8, int8]]) -foo$207(a ptr[in, templ_struct2[1]]) +foo$207(a ptr[in, templ_struct2[1]]) ### template argument A is not used # fmt -- cgit mrf-deployment