Commit bc5b896f authored by Damien George's avatar Damien George
Browse files

tests/basics/builtin_slice: Add test for "slice" builtin name.

parent bdb0d2d0
......@@ -4,4 +4,8 @@
class A:
def __getitem__(self, idx):
print(idx)
A()[1:2:3]
return idx
s = A()[1:2:3]
# check type
print(type(s) is slice)
Supports Markdown
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