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