davidcallanan / py-myopl-code

Interpreter for the BASIC language written in Python 3
MIT License
469 stars 326 forks source link

extend(listA, listB) function generating AttributeError #13

Closed Gargantuan5k closed 3 years ago

Gargantuan5k commented 3 years ago

Error message:

File "basic.py", line 1410, in register self.error = res.error AttributeError: 'Number' object has no attribute 'error'

Gargantuan5k commented 3 years ago

Fixed: I had not called RTResult.success() in the return Number.null statement in the execute_extend() function of the BuiltInFunction class.