Bug Report
🔎 Search Terms
template class no overlap label:Bug
🕗 Version & Regression Information
4.3.4 / 4.4.0-dev.20210617 / Nightly Playground
⏯ Playground Link
Playground Link
💻 Code
classClass{dummy=0;}functiontest<T>(a:T):void{if(a===Class){}// This condition will always return 'false' since the types 'T' and 'typeof Class' have no overlap.ts(2367)}🙁 Actual behavior
ts2367 error. a can be Class
🙂 Expected behavior
no error. a can be Class
Bug Report
🔎 Search Terms
template class no overlap label:Bug
🕗 Version & Regression Information
4.3.4 / 4.4.0-dev.20210617 / Nightly Playground
⏯ Playground Link
Playground Link
💻 Code
🙁 Actual behavior
ts2367 error.
acan beClass🙂 Expected behavior
no error.
acan beClass