Title: Circular inference failure (regression) · Issue #16512 · microsoft/TypeScript · GitHub
Open Graph Title: Circular inference failure (regression) · Issue #16512 · microsoft/TypeScript
X Title: Circular inference failure (regression) · Issue #16512 · microsoft/TypeScript
Description: TypeScript Version: 2.5.0-dev.20170613 Code I tried to make a simple repro but it failed. I had to add the annotation as follows. The previous code was working until 2.4.0-dev.20170606. falsandtru/pjax-api@f5dbc6d - .extract(parser => (h...
Open Graph Description: TypeScript Version: 2.5.0-dev.20170613 Code I tried to make a simple repro but it failed. I had to add the annotation as follows. The previous code was working until 2.4.0-dev.20170606. falsandtru/...
X Description: TypeScript Version: 2.5.0-dev.20170613 Code I tried to make a simple repro but it failed. I had to add the annotation as follows. The previous code was working until 2.4.0-dev.20170606. falsandtru/...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/16512
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Circular inference failure (regression)","articleBody":"**TypeScript Version:** 2.5.0-dev.20170613\r\n\r\n**Code**\r\n\r\nI tried to make a simple repro but it failed. I had to add the annotation as follows. The previous code was working until 2.4.0-dev.20170606.\r\n\r\nhttps://github.com/falsandtru/pjax-api/commit/f5dbc6d70a7f5c1ddf5cfe97d7130e5640c5e687\r\n\r\n```diff\r\n- .extract(parser => (html: string) => Just(parser(html)));\r\n+ .extract(parser => (html: string): Maybe\u003cDocument> => Just(parser(html)));\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nno error\r\n\r\n**Actual behavior:**\r\n\r\n```\r\nTypeScript error: src/lib/html.ts(9,22): Error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.\r\n```","author":{"url":"https://github.com/falsandtru","@type":"Person","name":"falsandtru"},"datePublished":"2017-06-14T01:12:36Z","url":"https://github.com/microsoft/TypeScript/issues/16512"}
| 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:c7388410-bb7c-9719-29cc-60bda414cbbe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 948C:3A4875:86DBDD:B51E1E:6B00E217 |
| html-safe-nonce | be35dbb1d5763c9f2a8798197c72eefea5775faac3aaebd6e798bbf7cf57369a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDhDOjNBNDg3NTo4NkRCREQ6QjUxRTFFOjZCMDBFMjE3IiwidmlzaXRvcl9pZCI6IjY4MzA1MTE3OTgwMTg0MzM1NTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | aa99a87435fbc976979ffc6918f64b06ac0cc75d3bac0a1cfc5522f433e2dd53 |
| hovercard-subject-tag | issue:235735262 |
| 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/16512/issue_layout |
| twitter:image | https://opengraph.githubassets.com/58bd3fdbb99476e4d0dff15b9a4d8a00a21006d9dd74641292a57be7020eb329/microsoft/TypeScript/issues/16512 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/58bd3fdbb99476e4d0dff15b9a4d8a00a21006d9dd74641292a57be7020eb329/microsoft/TypeScript/issues/16512 |
| og:image:alt | TypeScript Version: 2.5.0-dev.20170613 Code I tried to make a simple repro but it failed. I had to add the annotation as follows. The previous code was working until 2.4.0-dev.20170606. falsandtru/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | falsandtru |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf |
| 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 | 5425dc24e8bd8d6fca9641a12afc984825a43875 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width