Closed
Description
I think #16368 broke this code for me:
class Model {}
class Collection<M extends Model> {
m: M;
}
class User extends Model {
}
class Users extends Collection<User> {
}
type CollectionClass = typeof Collection;
let a: CollectionClass = Users; // Error 'User' is not assignable to 'M'
If I provide the --noStrictGenericChecks
flag, it compiles without any complaints. Can I correct this without using the flag?