Fix unintentional method shadowing in ASTAnnotatedVar

This commit is contained in:
Michael Hansen
2022-12-01 16:03:09 -08:00
parent e623e9ac56
commit 305494c4b2
2 changed files with 3 additions and 3 deletions

View File

@@ -3305,11 +3305,11 @@ void print_src(PycRef<ASTNode> node, PycModule* mod)
{
PycRef<ASTAnnotatedVar> annotated_var = node.cast<ASTAnnotatedVar>();
PycRef<ASTObject> name = annotated_var->name().cast<ASTObject>();
PycRef<ASTNode> type = annotated_var->type();
PycRef<ASTNode> annotation = annotated_var->annotation();
fputs(name->object().cast<PycString>()->value(), pyc_output);
fputs(": ", pyc_output);
print_src(type, mod);
print_src(annotation, mod);
}
break;
case ASTNode::NODE_TERNARY: