Commit 119324d7 authored by Robert Griesemer's avatar Robert Griesemer

- updated printing of chan types

R=r
OCL=15448
CL=15448
parent f0635bbf
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment