test dynfunc package; standardize and refactor api #14

Merged
xdrm-brackets merged 19 commits from test/dynamic into 0.3.0 2020-04-04 10:09:20 +00:00
1 changed files with 1 additions and 0 deletions
Showing only changes of commit 261e25c127 - Show all commits

View File

@ -125,6 +125,7 @@ func (s spec) checkOutput(fnv reflect.Value) error {
continue continue
} }
if !field.Type.ConvertibleTo(ptype) {
return fmt.Errorf("%s: %w (%s instead of %s)", name, ErrWrongParamTypeFromConfig, field.Type, ptype) return fmt.Errorf("%s: %w (%s instead of %s)", name, ErrWrongParamTypeFromConfig, field.Type, ptype)
} }
} }