Files
test-repo/tests/flow/optional/loop.js
T

5 lines
273 B
JavaScript
Raw Normal View History

2017-04-08 16:52:38 +02:00
/* Regression test. Improper handling of OptionalT repositioning can cause
* reasons to grow "optional x" -> "optional optional x" -> "optional optional
* optional x", which thwarts reason-based caches that prevent nontermination.
*/
function f<T:*>(x:T,y?:T) { x = y }