diff --git a/src/printer/relay_text_printer.cc b/src/printer/relay_text_printer.cc index 4fc03039466c..2de331be9581 100644 --- a/src/printer/relay_text_printer.cc +++ b/src/printer/relay_text_printer.cc @@ -219,6 +219,7 @@ Doc RelayTextPrinter::AllocVar(const Var& var) { if (var->type_annotation.defined()) { val << ": " << Print(var->type_annotation); } + val << PrintOptionalInfo(var); return val; }