Not a fix but useful for further debugging, and safe.
Run-TryBot: Robert Griesemer <email@example.com>
TryBot-Result: Gobot Gobot <firstname.lastname@example.org>
Reviewed-by: Matthew Dempsky <email@example.com>
To evaluate the type of composite literals, the type checker called
Checker.typ which breaks cycles. As a result, certain cycles were
not reported with actual cycle reporting, but caught due to other
uninitialized fields (with less nice error message).
The change now calls Checker.typExpr at the relevant call site.
Reviewed-by: Alan Donovan <firstname.lastname@example.org>