Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg: do not treat unknown Go types as adt.TopKind
We had one of these cases with pkg/time.Split, which returned the type Parts, which is a struct. Declaring the result kind as adt.TopKind works, but declaring it as adt.StructKind is more precise. We no longer have a catch-all default, forcing us to handle all types in the best way we can, much like adtKind does now. Signed-off-by: Daniel Martí <[email protected]> Change-Id: Ie890f45c0918e0c2f18c5a60679fecebf7133fb4 Dispatch-Trailer: {"type":"trybot","CL":1201036,"patchset":3,"ref":"refs/changes/36/1201036/3","targetBranch":"master"}
- Loading branch information