Title: `noImplicitAny` and generic arrow functions misbehave · Issue #13632 · microsoft/TypeScript · GitHub
Open Graph Title: `noImplicitAny` and generic arrow functions misbehave · Issue #13632 · microsoft/TypeScript
X Title: `noImplicitAny` and generic arrow functions misbehave · Issue #13632 · microsoft/TypeScript
Description: TypeScript Version: playground (2.1.4-insiders.20161201) Code The following code should be run with the noImplicitAny set: let f1:
Open Graph Description: TypeScript Version: playground (2.1.4-insiders.20161201) Code The following code should be run with the noImplicitAny set: let f1:
X Description: TypeScript Version: playground (2.1.4-insiders.20161201) Code The following code should be run with the noImplicitAny set: let f1: <T>(a: T) => T = a => a; function f2<T>(a: T): T...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/13632
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`noImplicitAny` and generic arrow functions misbehave","articleBody":"\u003c!-- BUGS: Please use this template. -->\r\n\u003c!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript -->\r\n\u003c!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md -->\r\n\r\n**TypeScript Version:** playground (2.1.4-insiders.20161201)\r\n\r\n**Code**\r\n\r\nThe following code should be run with the `noImplicitAny` set:\r\n\r\n```ts\r\nlet f1: \u003cT>(a: T) => T = a => a;\r\n\r\nfunction f2\u003cT>(a: T): T {\r\n return a;\r\n};\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nBoth functions should compile fine.\r\n\r\n**Actual behavior:**\r\n\r\nThe `f1` arrow function fails the type check as the compiler thinks `a` is of `any` type.","author":{"url":"https://github.com/zerkms","@type":"Person","name":"zerkms"},"datePublished":"2017-01-23T09:25:10Z","url":"https://github.com/microsoft/TypeScript/issues/13632"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2be52ad3-78c9-659a-6b77-b81b3842ea32 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8ECE:1F7384:A56875:DC5458:6B00E9E7 |
| html-safe-nonce | e59853d16bdc440cfe1b6e02d5b7462d00e0d56456a8ad039f0a321918acc488 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUNFOjFGNzM4NDpBNTY4NzU6REM1NDU4OjZCMDBFOUU3IiwidmlzaXRvcl9pZCI6IjcwNDcwNTYyNDUxMjcxNzg3MjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 40b3110013aca8673a3875cbe497f4fea3f0623afd3459b2172611803963cd6c |
| hovercard-subject-tag | issue:202482024 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/13632/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d74a791d3897bf9009ab0f9562b1bc509b2ed7ba78bcc3de7849bea9d7529574/microsoft/TypeScript/issues/13632 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d74a791d3897bf9009ab0f9562b1bc509b2ed7ba78bcc3de7849bea9d7529574/microsoft/TypeScript/issues/13632 |
| og:image:alt | TypeScript Version: playground (2.1.4-insiders.20161201) Code The following code should be run with the noImplicitAny set: let f1: |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zerkms |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width