Refactor Type to be an int
This commit is contained in:
@@ -44,7 +44,7 @@ func RangeOfArgs(n, m int) CheckFunc {
|
||||
}
|
||||
}
|
||||
|
||||
func WithTypes(types ...object.ObjectType) CheckFunc {
|
||||
func WithTypes(types ...object.Type) CheckFunc {
|
||||
return func(name string, args []object.Object) error {
|
||||
for i, t := range types {
|
||||
if i < len(args) && args[i].Type() != t {
|
||||
|
||||
Reference in New Issue
Block a user