Title: Overloaded methods not resolving properly with the mono engine · Issue #837 · scriptcs/scriptcs · GitHub
Open Graph Title: Overloaded methods not resolving properly with the mono engine · Issue #837 · scriptcs/scriptcs
X Title: Overloaded methods not resolving properly with the mono engine · Issue #837 · scriptcs/scriptcs
Description: Given the following script: using System.Net.Http; using System.Net.Http.Formatting; using System.Net.Http.Headers; using Newtonsoft.Json.Linq; using System.Linq; public HttpResponseMessage Get(string uri) { var client = new HttpClient()...
Open Graph Description: Given the following script: using System.Net.Http; using System.Net.Http.Formatting; using System.Net.Http.Headers; using Newtonsoft.Json.Linq; using System.Linq; public HttpResponseMessage Get(str...
X Description: Given the following script: using System.Net.Http; using System.Net.Http.Formatting; using System.Net.Http.Headers; using Newtonsoft.Json.Linq; using System.Linq; public HttpResponseMessage Get(str...
Mail addresses
notifications@github.com
Opengraph URL: https://github.com/scriptcs/scriptcs/issues/837
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Overloaded methods not resolving properly with the mono engine","articleBody":"Given the following script:\n\n``` csharp\nusing System.Net.Http;\nusing System.Net.Http.Formatting;\nusing System.Net.Http.Headers;\nusing Newtonsoft.Json.Linq;\nusing System.Linq;\n\npublic HttpResponseMessage Get(string uri) {\n var client = new HttpClient();\n return client.GetAsync(uri).Result;\n}\n\npublic HttpResponseMessage Get(Uri uri) {\n var client = new HttpClient();\n return client.GetAsync(uri).Result;\n}\n```\n\nThe following error occurs when loading:\n\n``` tet\n(1,25): error CS1678: Parameter `1' is declared as type `string' but should be `System.Uri'\n(1,8): error CS1661: Cannot convert `anonymous method' to delegate type `System.Func\u003cSystem.Uri,System.Net.Http.HttpResponseMessage>' since there is a parameter mismatch\n(2,13): error CS1594: Delegate `System.Func\u003cSystem.Uri,System.Net.Http.HttpResponseMessage>' has some invalid arguments\n(2,18): error CS1503: Argument `#1' cannot convert `string' expression to type `System.Uri'\n```\n\nRenaming the second method to `GetUri` fixes the problem. This appears to be specific to script code, as the underlying overloaded methods are called fine i.e. `GetAsync`.\n","author":{"url":"https://github.com/glennblock","@type":"Person","name":"glennblock"},"datePublished":"2014-10-02T06:45:02Z","url":"https://github.com/scriptcs/scriptcs/issues/837"}
| 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:858c29f5-51dd-b883-67b2-b0c2c30ad14f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DCCC:26654F:2B1F0FB:38F73CF:6B001A88 |
| html-safe-nonce | cbf81c2a3042d9c68628a934ca92f4283870aab8a387f1fa432c55f95ba60626 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQ0NDOjI2NjU0RjoyQjFGMEZCOjM4RjczQ0Y6NkIwMDFBODgiLCJ2aXNpdG9yX2lkIjoiMjIxMjIyMzI1MDkyMDkwNTM1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b1eaaf22ab18cf8fe13dd664a298d9ec5f259ff94a22489bc8e744a4acb8b65b |
| hovercard-subject-tag | issue:44655632 |
| 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/scriptcs/scriptcs/837/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2ced208ca6e4dc89e8178b73949b47736a72d5447cbe9942e1a6245a27d5c064/scriptcs/scriptcs/issues/837 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2ced208ca6e4dc89e8178b73949b47736a72d5447cbe9942e1a6245a27d5c064/scriptcs/scriptcs/issues/837 |
| og:image:alt | Given the following script: using System.Net.Http; using System.Net.Http.Formatting; using System.Net.Http.Headers; using Newtonsoft.Json.Linq; using System.Linq; public HttpResponseMessage Get(str... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | glennblock |
| hostname | github.com |
| expected-hostname | github.com |
| None | a2dd2291b1b13cc9c06f27ec92fa3dbaf34116fc24c9347b8539db61884c59f4 |
| turbo-cache-control | no-preview |
| go-import | github.com/scriptcs/scriptcs git https://github.com/scriptcs/scriptcs.git |
| octolytics-dimension-user_id | 3758046 |
| octolytics-dimension-user_login | scriptcs |
| octolytics-dimension-repository_id | 8473240 |
| octolytics-dimension-repository_nwo | scriptcs/scriptcs |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 8473240 |
| octolytics-dimension-repository_network_root_nwo | scriptcs/scriptcs |
| 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 | 70121d4e855ee0bb7b75cf15d061d91f8863c0f8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width