-- stats.txt -- Leaks: 0 Freed: 16 Reused: 10 Allocs: 6 Retain: 0 Unifications: 10 Conjuncts: 94 Disjuncts: 16 -- in.cue -- package lpcorpus #Value: {type: "int"} | {type: "float"} | {type: "string"} foo: [{type: "float"}] & [...#Value] foo: [{type: "float"}] & [...#Value] foo: [{type: "float"}] & [...#Value] foo: [{type: "float"}] & [...#Value] foo: [{type: "float"}] & [...#Value] foo: [{type: "string"}] & [...#Value] foo: [{type: "string"}] & [...#Value] foo: [{type: "string"}] & [...#Value] foo: [{type: "float"}] & [...#Value] foo: [{type: "float"}] & [...#Value] -- out/eval/stats -- Leaks: 0 Freed: 16 Reused: 10 Allocs: 6 Retain: 0 Unifications: 10 Conjuncts: 94 Disjuncts: 16 -- out/eval -- Errors: foo.0: 2 errors in empty disjunction: foo.0.type: conflicting values "int" and "float": ./in.cue:3:16 ./in.cue:5:14 ./in.cue:5:27 ./in.cue:5:30 foo.0.type: conflicting values "string" and "float": ./in.cue:5:14 ./in.cue:10:14 Result: (_|_){ // [eval] #Value: (#struct){ |((#struct){ type: (string){ "int" } }, (#struct){ type: (string){ "float" } }, (#struct){ type: (string){ "string" } }) } foo: (_|_){ // [eval] 0: (_|_){ // [eval] foo.0: 2 errors in empty disjunction: // foo.0.type: conflicting values "int" and "float": // ./in.cue:3:16 // ./in.cue:5:14 // ./in.cue:5:27 // ./in.cue:5:30 // foo.0.type: conflicting values "string" and "float": // ./in.cue:5:14 // ./in.cue:10:14 type: (_|_){ // [eval] foo.0.type: conflicting values "string" and "float": // ./in.cue:5:14 // ./in.cue:10:14 } } } } -- out/compile -- --- in.cue { #Value: ({ type: "int" }|{ type: "float" }|{ type: "string" }) foo: ([ { type: "float" }, ] & [ ...〈1;#Value〉, ]) foo: ([ { type: "float" }, ] & [ ...〈1;#Value〉, ]) foo: ([ { type: "float" }, ] & [ ...〈1;#Value〉, ]) foo: ([ { type: "float" }, ] & [ ...〈1;#Value〉, ]) foo: ([ { type: "float" }, ] & [ ...〈1;#Value〉, ]) foo: ([ { type: "string" }, ] & [ ...〈1;#Value〉, ]) foo: ([ { type: "string" }, ] & [ ...〈1;#Value〉, ]) foo: ([ { type: "string" }, ] & [ ...〈1;#Value〉, ]) foo: ([ { type: "float" }, ] & [ ...〈1;#Value〉, ]) foo: ([ { type: "float" }, ] & [ ...〈1;#Value〉, ]) }