Commit 324666bc authored by Stefan Behnel's avatar Stefan Behnel

fix crashes on type casts

parent 541c78bb
......@@ -3585,7 +3585,7 @@ def unop_node(pos, operator, operand):
operand = operand)
class TypecastNode(ExprNode):
class TypecastNode(NewTempExprNode):
# C type cast
#
# operand ExprNode
......
u"""
>>> call_method( ExtType() ).method()
1
"""
cdef class ExtType:
cdef c_method(self):
return self
def method(self):
return 1
def call_method(ExtType et):
return <ExtType>et.c_method()
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