@@ -416,6 +416,12 @@ DocRef Fmt(const ChannelTypeAnnotation& n, Comments& comments,
416416 return ConcatNGroup (arena, pieces);
417417}
418418
419+ DocRef Fmt (const TypeVariableTypeAnnotation& n, Comments& comments,
420+ DocArena& arena) {
421+ std::vector<DocRef> pieces = {Fmt (*n.type_variable (), comments, arena)};
422+ return ConcatNGroup (arena, pieces);
423+ }
424+
419425DocRef Fmt (const TypeAnnotation& n, Comments& comments, DocArena& arena) {
420426 if (auto * t = dynamic_cast <const BuiltinTypeAnnotation*>(&n)) {
421427 return Fmt (*t, comments, arena);
@@ -432,6 +438,12 @@ DocRef Fmt(const TypeAnnotation& n, Comments& comments, DocArena& arena) {
432438 if (auto * t = dynamic_cast <const ChannelTypeAnnotation*>(&n)) {
433439 return Fmt (*t, comments, arena);
434440 }
441+ if (auto * t = dynamic_cast <const TypeVariableTypeAnnotation*>(&n)) {
442+ return Fmt (*t, comments, arena);
443+ }
444+ if (dynamic_cast <const GenericTypeAnnotation*>(&n)) {
445+ return arena.Make (Keyword::kType );
446+ }
435447 if (dynamic_cast <const SelfTypeAnnotation*>(&n)) {
436448 return arena.Make (Keyword::kSelfType );
437449 }
0 commit comments