mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
10 lines
169 B
JavaScript
10 lines
169 B
JavaScript
// @noflow
|
|
|
|
// polymorphic recursive types
|
|
|
|
type F<X> = { f: F<X>, x: X }
|
|
type G = { x: number }
|
|
type H = { x: string }
|
|
|
|
function rec(x: F<string>): G | H { return x; }
|