1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
let x = 1; // Flow in /**/ x.foo; // ^ defined: 1 // Flow out (y = 1).foo; /**/ y; // ^ defined: 10 // Flow around /**/ x; // ^ defined: 1 // Optional chain /**/ x?.foo // ^ defined: 1