aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler/testdata/errors.txt
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2019-09-03 18:54:35 +0200
committerDmitry Vyukov <dvyukov@google.com>2019-09-04 07:10:15 +0200
commita50398545a325e46db14f4f3cf985938693e1456 (patch)
tree9145b981accc787bc7d592e72c0512a31a51697a /pkg/compiler/testdata/errors.txt
parent526709ff0442e985edd498e14c736de8302dc867 (diff)
pkg/compiler: detect unused template params
Diffstat (limited to 'pkg/compiler/testdata/errors.txt')
-rw-r--r--pkg/compiler/testdata/errors.txt4
1 files changed, 2 insertions, 2 deletions
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