diff options
Diffstat (limited to 'tests/errors/reversed_literal_pyobjs.pyx')
-rw-r--r-- | tests/errors/reversed_literal_pyobjs.pyx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/errors/reversed_literal_pyobjs.pyx b/tests/errors/reversed_literal_pyobjs.pyx index 8444eaf2b..e5d1cb97d 100644 --- a/tests/errors/reversed_literal_pyobjs.pyx +++ b/tests/errors/reversed_literal_pyobjs.pyx @@ -10,6 +10,7 @@ for i in reversed(range(j, [], 2)): pass for i in reversed(range(j, [], -2)): pass +# code below is no longer a compile-time error (although won't run without an exception) for i in reversed(range({}, j, 2)): pass for i in reversed(range({}, j, -2)): @@ -24,8 +25,4 @@ _ERRORS = """ 7:24: Cannot coerce list to type 'long' 9:27: Cannot coerce list to type 'long' 11:27: Cannot coerce list to type 'long' -13:24: Cannot interpret dict as type 'long' -15:24: Cannot interpret dict as type 'long' -17:27: Cannot interpret dict as type 'long' -19:27: Cannot interpret dict as type 'long' """ |