The parser should continue to accept
switch (x.(type)) { ... }
in a type switch for now so that incorrect code is correctly rewritten by gofmt. The
form:
switch t := (x.(type)) { ... }
was never accepted, so leave it alone.
See CL 6867062 for a test case.
The text was updated successfully, but these errors were encountered: