Bug Report
π Search Terms
keyof generic noImplicitAny
π Version & Regression Information
4.5.0-dev.20210927
β― Playground Link
Playground link with relevant code
π» Code
declare function foo<T>(value: keyof T): T
const bar = foo('asdf') //type is { asdf: any }
π Actual behavior
type is inferred as { asdf: any }
π Expected behavior
type is inferred as { asdf: unknown }, or a noImplicitAny error occurs