(name, refs)
| 241 | Properties: [{ Name: 'type', Occurrence: { n: 1, m: 1 }, Type: [lit(typeConst)], Comments: [] }, ...extra], |
| 242 | }) |
| 243 | const union = (name, refs) => ({ |
| 244 | Type: 'variable', |
| 245 | Name: name, |
| 246 | IsChoiceAddition: false, |
| 247 | Comments: [], |
| 248 | PropertyType: refs.map(ref), |
| 249 | }) |
| 250 | |
| 251 | it('discriminates on a constant key, flattening a tagged sub-union and recording an untyped default', () => { |
| 252 | // x.Value = ( x.Prim / x.Date / x.Reference ); x.Prim is itself type-tagged, |
no test coverage detected