You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Constrained nullable generics are not control flow checked #14415
interfaceBanana{color: 'yellow';}classMonkey<TextendsBanana|undefined>{a: T;render(){if(this.a){this.a.color;// error Property 'color' does not exists on type 'T'}}}interfaceBigBananaextendsBanana{}classBigMonkeyextendsMonkey<BigBanana>{render(){if(this.a){this.a.color;}}}
Activity
ahejlsberg commentedon Mar 3, 2017
Looks like the same issue as #12636.