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 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1201036 Reviewed-by: Roger Peppe <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
- Loading branch information