-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
Needs More InfoThe issue still hasn't been fully clarifiedThe issue still hasn't been fully clarified
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?
Metadata
Metadata
Assignees
Labels
Needs More InfoThe issue still hasn't been fully clarifiedThe issue still hasn't been fully clarified