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