(name, refs)
| 351 | Properties: [{ Name: 'type', Occurrence: { n: 1, m: 1 }, Type: [lit(typeConst)], Comments: [] }, ...extra], |
| 352 | }) |
| 353 | const union = (name, refs) => ({ |
| 354 | Type: 'variable', |
| 355 | Name: name, |
| 356 | IsChoiceAddition: false, |
| 357 | Comments: [], |
| 358 | PropertyType: refs.map(ref), |
| 359 | }) |
| 360 | |
| 361 | it('discriminates on a constant key, flattening a tagged sub-union and recording an untyped default', () => { |
| 362 | // x.Value = ( x.Prim / x.Date / x.Reference ); x.Prim is itself type-tagged, |
no test coverage detected