Commit 2d9ff9f5 authored by Damien George's avatar Damien George

leon: Add test from upstream to cover case in VM, return opcode.

parent ce40af83
# test use of return with try-except
def f(l, i):
try:
return l[i]
except IndexError:
print('IndexError')
return -1
print(f([1], 0))
print(f([], 0))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment