tpl: check that types in args match the target func's type

Fixes #1095
This commit is contained in:
bep
2015-05-01 17:00:22 +02:00
parent be049ff96a
commit be15927819
2 changed files with 10 additions and 1 deletions

View File

@@ -23,7 +23,10 @@ func TestTplGoFuzzReports(t *testing.T) {
{"{{ slicestr \"000000\" 10}}", 2},
// Issue #1091
{"{{apply .C \"first\" 0 0 0}}", 2},
{"{{seq 3e80}}", 2}} {
{"{{seq 3e80}}", 2},
// Issue #1095
{"{{apply .C \"urlize\" " +
"\".\"}}", 2}} {
templ := New()
d := &Data{