- updated printing of chan types

R=r
OCL=15448
CL=15448
This commit is contained in:
Robert Griesemer 2008-09-17 14:26:01 -07:00
parent f0635bbfaa
commit 119324d785

View File

@ -238,14 +238,12 @@ func (P *Printer) PrintTypeStruct(typ *Globals.Type) {
P.PrintType(typ.elt);
case Type.CHANNEL:
print("chan");
switch typ.flags {
case Type.SEND: print(" -<");
case Type.RECV: print(" <-");
case Type.SEND + Type.RECV: // nothing to print
case Type.SEND: print("chan <- ");
case Type.RECV: print("<- chan ");
case Type.SEND + Type.RECV: print("chan ");
default: panic("UNREACHABLE");
}
print(" ");
P.PrintType(typ.elt);
case Type.FUNCTION: