Fix formatting of types

This commit is contained in:
Hackerpilot 2014-05-06 19:36:28 -07:00
parent 1ecb831476
commit 7fb5ca420d
1 changed files with 1 additions and 6 deletions

View File

@ -682,16 +682,11 @@ class Formatter(Sink)
void format(const Type type)
{
bool first = true;
foreach (constructor; type.typeConstructors)
{
if (first)
sink.put(" ");
first = false;
sink.put(str(constructor));
sink.put(" ");
}
if (type.typeConstructors.length > 0)
sink.put(" ");
format(type.type2);
foreach (suffix; type.typeSuffixes)
{