mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
15 lines
221 B
JavaScript
15 lines
221 B
JavaScript
/***
|
|
* nested unions
|
|
* @flow
|
|
*/
|
|
|
|
// inline
|
|
var nested1: ('foo' | 'bar') | 'baz' = 'baz';
|
|
|
|
// through tvars
|
|
type FooBar = 'foo' | 'bar';
|
|
type Baz = 'baz';
|
|
type FooBarBaz = FooBar | Baz;
|
|
|
|
var nested2: FooBarBaz = 'baz';
|