Open
Description
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
π» Code
class Class {
dummy = 0;
}
function test<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