(name, refs)
| 212 | Properties: [{ Name: 'type', Occurrence: { n: 1, m: 1 }, Type: [lit(typeConst)], Comments: [] }, ...extra], |
| 213 | }) |
| 214 | const union = (name, refs) => ({ |
| 215 | Type: 'variable', |
| 216 | Name: name, |
| 217 | IsChoiceAddition: false, |
| 218 | Comments: [], |
| 219 | PropertyType: refs.map(ref), |
| 220 | }) |
| 221 | |
| 222 | it('discriminates on a constant key, flattening a tagged sub-union and recording an untyped default', () => { |
| 223 | // x.Value = ( x.Prim / x.Date / x.Reference ); x.Prim is itself type-tagged, |
no test coverage detected