//@flow function f(ex: $Exact, x: X) { ex as X; ex as $Exact; x as $Exact; // nope 42 as any as {} as $Exact; // nope }