cue/testdata: start a disjunctions/discriminator.txtar file
For now, it just demonstrates disjunctions where the disjuncts
can be discriminated by kind, such as the case below:
#Def: null | {f1: int}
out: #Def & {f1: "not an int"}
This CUE should fail, but the user most likely does not care about
the "mismatched types null and struct" error with the null disjunct;
once the data is a struct, we can focus on the error for the field f1.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I75699ba42e55fef158b1124ddc7ba6b438668e02
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1227406
Reviewed-by: Marcel van Lohuizen <mpvl@gmail.com>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>