Literal strings with generics are inconsistant when strictNullChecks is false #50787
Labels
Fix Available
A PR has been opened for this issue
Needs Investigation
This issue needs a team member to investigate its status.
Bug Report
π Search Terms
π Version & Regression Information
It works properly on v4.7.4 but is failing on v4.8.2 and with the nightly build.
It also works normally when
strictNullChecks
istrue
.β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
result1
has a type ofPick<Model, keyof Model>
andresult2
as a type ofPick<Model, "s">
π Expected behavior
result1
andresult2
should have the same typePick<Model, "s">
.The text was updated successfully, but these errors were encountered: