Refactor Type to be an int
This commit is contained in:
@@ -10,7 +10,7 @@ func Push(args ...object.Object) object.Object {
|
||||
if err := typing.Check(
|
||||
"push", args,
|
||||
typing.ExactArgs(2),
|
||||
typing.WithTypes(object.ARRAY_OBJ),
|
||||
typing.WithTypes(object.ArrayType),
|
||||
); err != nil {
|
||||
return newError(err.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user