Title: Constraints of functions passed as argument are not checked · Issue #14766 · microsoft/TypeScript · GitHub
Open Graph Title: Constraints of functions passed as argument are not checked · Issue #14766 · microsoft/TypeScript
X Title: Constraints of functions passed as argument are not checked · Issue #14766 · microsoft/TypeScript
Description: TypeScript Version: nightly Code declare function p(x: 'hello'): 'hello'; declare function g
Open Graph Description: TypeScript Version: nightly Code declare function p(x: 'hello'): 'hello'; declare function g X Description: TypeScript Version: nightly Code declare function p(x: 'hello'): 'hello'; declare function g<T extends string>(x: T): T; declare function h(f: (x: number) => number): numbe...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/14766
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Constraints of functions passed as argument are not checked","articleBody":"**TypeScript Version:** nightly\r\n\r\n**Code**\r\n\r\n```ts\r\ndeclare function p(x: 'hello'): 'hello';\r\ndeclare function g\u003cT extends string>(x: T): T;\r\n\r\ndeclare function h(f: (x: number) => number): number;\r\ndeclare function f\u003cT extends number>(f: (x: T) => T): T;\r\n\r\nh(p); // Error as expected\r\nh(g); // Uncaught error\r\nf(g); // Uncaught error\r\n```\r\n\r\n**Expected behavior:**\r\nAll of the above invokations should be errors.","author":{"url":"https://github.com/gcnew","@type":"Person","name":"gcnew"},"datePublished":"2017-03-21T14:50:11Z","url":"https://github.com/microsoft/TypeScript/issues/14766"}
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:281187db-1bb7-691d-9eba-6152f5a4be7f current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id 9200:296654:686AC1:8DEE91:6B00D7A0 html-safe-nonce a576fe99c9a4c49134fae8b319856997379b68e7377ffbcffd11f178d0ae100c visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjAwOjI5NjY1NDo2ODZBQzE6OERFRTkxOjZCMDBEN0EwIiwidmlzaXRvcl9pZCI6IjQ3NTUzNDAzOTI2NjczMzg2NTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== visitor-hmac d10cf978f1d8965d9f288095c158d5d8992a2bab1d419d7985686fd5aa171c8c hovercard-subject-tag issue:215765812 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/14766/issue_layout twitter:image https://opengraph.githubassets.com/fc2a52e5815e04b71f0cb6fed7a53a186a60cfd5610648bc7b3cb1e3a35a1410/microsoft/TypeScript/issues/14766 twitter:card summary_large_image og:image https://opengraph.githubassets.com/fc2a52e5815e04b71f0cb6fed7a53a186a60cfd5610648bc7b3cb1e3a35a1410/microsoft/TypeScript/issues/14766 og:image:alt TypeScript Version: nightly Code declare function p(x: 'hello'): 'hello'; declare function g og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username gcnew hostname github.com expected-hostname github.com None a481f62a1e04c9b9bdcb5628230682c66d59006f5b13b080f79cba84a176905b 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 84c8c5cc25e2fb7f2308428458538436baecc6d2 ui-target full theme-color #1e2327 color-scheme light dark react-app-name issues
URLs of crawlers that visited me.