Title: Better error messages for ambient accessors. · Issue #139 · microsoft/TypeScript · GitHub
Open Graph Title: Better error messages for ambient accessors. · Issue #139 · microsoft/TypeScript
X Title: Better error messages for ambient accessors. · Issue #139 · microsoft/TypeScript
Description: declare class A { get length() : number; } Giving the error '{' expected. As Jason Freeman (@JsonFreeman) said This is a bad error because fixing it (by putting the braces) will just lead you to another error (no accessors in ambient con...
Open Graph Description: declare class A { get length() : number; } Giving the error '{' expected. As Jason Freeman (@JsonFreeman) said This is a bad error because fixing it (by putting the braces) will just lead you to an...
X Description: declare class A { get length() : number; } Giving the error '{' expected. As Jason Freeman (@JsonFreeman) said This is a bad error because fixing it (by putting the braces) will just lead y...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/139
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Better error messages for ambient accessors.","articleBody":"``` TypeScript\ndeclare class A {\n get length() : number;\n}\n```\n\nGiving the error `'{' expected.`\n\nAs @JsonFreeman said\n\n> This is a bad error because fixing it (by putting the braces) will just lead you to another error (no accessors in ambient context)\n","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2014-07-18T00:30:41Z","url":"https://github.com/microsoft/TypeScript/issues/139"}
| 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:22a9c178-1d21-7fb9-9e0a-d4a62f2c6cde |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8820:1DE2E0:34B3FE:49EA37:6B043E95 |
| html-safe-nonce | 61ff0e56f30300744f5d9a2c335bd44cea01c71fad1fc23789bd6bad2791fb82 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODIwOjFERTJFMDozNEIzRkU6NDlFQTM3OjZCMDQzRTk1IiwidmlzaXRvcl9pZCI6IjM3OTgzNzQzMjcxMDQzMjMyMjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 531d9fc0b26e1dbdcd12696ea9d9b382552cddaaf069dff4fac31f3f67d2124c |
| hovercard-subject-tag | issue:38139117 |
| 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/139/issue_layout |
| twitter:image | https://opengraph.githubassets.com/85366de1a228dbcb657a74f1ebfc870c24e5dae36a81166f7a74f86f8553dcd7/microsoft/TypeScript/issues/139 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/85366de1a228dbcb657a74f1ebfc870c24e5dae36a81166f7a74f86f8553dcd7/microsoft/TypeScript/issues/139 |
| og:image:alt | declare class A { get length() : number; } Giving the error '{' expected. As Jason Freeman (@JsonFreeman) said This is a bad error because fixing it (by putting the braces) will just lead you to an... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DanielRosenwasser |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| 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 | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width