Skip to content

Commit 26bd874

Browse files
committed
Use is_propset in emitfunc
1 parent 1990b6d commit 26bd874

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mypyc/codegen/emitfunc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ def visit_set_attr(self, op: SetAttr) -> None:
484484
rtype = op.class_type
485485
cl = rtype.class_ir
486486
attr_rtype, decl_cl = cl.attr_details(op.attr)
487-
if cl.get_method(op.attr):
487+
if op.is_propset:
488488
# Again, use vtable access for properties...
489489
assert not op.is_init and op.error_kind == ERR_FALSE, "%s %d %d %s" % (
490490
op.attr,

0 commit comments

Comments
 (0)