Commit 862065f4 authored by Stefan Behnel's avatar Stefan Behnel

add assert to find cases where we fail to generate code for indexing/slicing

--HG--
extra : amend_source : b6140bfd07fdf9ae0c7dde2037b3cbff682260e7
parent 75474ef1
...@@ -3372,6 +3372,9 @@ class IndexNode(ExprNode): ...@@ -3372,6 +3372,9 @@ class IndexNode(ExprNode):
self.extra_index_params(code), self.extra_index_params(code),
self.result(), self.result(),
code.error_goto(self.pos))) code.error_goto(self.pos)))
else:
assert False, "unexpected type %s and base type %s for indexing" % (
self.type, self.base.type)
def generate_setitem_code(self, value_code, code): def generate_setitem_code(self, value_code, code):
if self.index.type.is_int: if self.index.type.is_int:
......
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