Index type for an intersected NoInfer
can get sometimes incorrectly deferred
#61091
Labels
Help Wanted
You can do this
Possible Improvement
The current behavior isn't wrong, but it's possible to see that it might be better in some cases
Milestone
π Search Terms
noinfer intersection index type keyof deferred deferral
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play/?ts=5.8.0-dev.20250131#code/C4TwDgpgBAKhDOwoF4oGsIgPYDMoAoA5LASQDscIAnAHgG8ocssAuKRKgSzIHMoBfAHxQAZFDr8AlAG4AUAHp5UZQD0A-LNCRYCYACYU6TLgIMmrdsC68Bo8VLmLlUdbKA
π» Code
π Actual behavior
Test
is a deferred index typeπ Expected behavior
Test
shouldn't be a deferred index type but a"foo"
literal, just likeTest2
.Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: