Title: Use of super in a non-derived class results in an assertion · Issue #1677 · AssemblyScript/assemblyscript · GitHub
Open Graph Title: Use of super in a non-derived class results in an assertion · Issue #1677 · AssemblyScript/assemblyscript
X Title: Use of super in a non-derived class results in an assertion · Issue #1677 · AssemblyScript/assemblyscript
Description: The following snippet should emit a diagnostic instead of an assertion export class B { constructor(a: i32) { super(x); } } export function add(a: i32, b: i32): i32 { new B(a); return a + b; } I believe that the diagnostic should be some...
Open Graph Description: The following snippet should emit a diagnostic instead of an assertion export class B { constructor(a: i32) { super(x); } } export function add(a: i32, b: i32): i32 { new B(a); return a + b; } I be...
X Description: The following snippet should emit a diagnostic instead of an assertion export class B { constructor(a: i32) { super(x); } } export function add(a: i32, b: i32): i32 { new B(a); return a + b; } I be...
Opengraph URL: https://github.com/AssemblyScript/assemblyscript/issues/1677
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use of super in a non-derived class results in an assertion","articleBody":"\u003c!--\r\n Thanks for submitting an issue to AssemblyScript! Please take a moment to\r\n read the contributing guidelines linked below to get off to a good start 🙂\r\n-->\r\n\r\nThe following snippet should emit a diagnostic instead of an assertion\r\n\r\n```ts\r\nexport class B {\r\n constructor(a: i32) {\r\n super(x);\r\n }\r\n}\r\n\r\nexport function add(a: i32, b: i32): i32 {\r\n new B(a);\r\n return a + b;\r\n}\r\n```\r\n\r\nI believe that the diagnostic should be something like:\r\n\r\n```\r\n'super' can only be referenced in a derived class.\r\n```\r\n\r\n","author":{"url":"https://github.com/saulecabrera","@type":"Person","name":"saulecabrera"},"datePublished":"2021-02-08T21:56:28Z","url":"https://github.com/AssemblyScript/assemblyscript/issues/1677"}
| 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:46441580-118d-e6d3-b586-d94ea7d9dcaa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 97AE:3FAEB4:72B593:9EA737:6B009E64 |
| html-safe-nonce | fe24f598fc0c4442248f8ca7646da588fcce198c952769979c9b8d88abee088a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0FFOjNGQUVCNDo3MkI1OTM6OUVBNzM3OjZCMDA5RTY0IiwidmlzaXRvcl9pZCI6IjI1Nzg5MzkxNDY0NzUxODM3MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c8690548c0d6cdb65e20861369dfcb54ca9b97b40e7f6f3db350a9a7e3574b1e |
| hovercard-subject-tag | issue:804001543 |
| 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/AssemblyScript/assemblyscript/1677/issue_layout |
| twitter:image | https://opengraph.githubassets.com/08a12973bd574e01652bbb97b7a864a0e3a6777a25c566d71d0486c6b6f5949f/AssemblyScript/assemblyscript/issues/1677 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/08a12973bd574e01652bbb97b7a864a0e3a6777a25c566d71d0486c6b6f5949f/AssemblyScript/assemblyscript/issues/1677 |
| og:image:alt | The following snippet should emit a diagnostic instead of an assertion export class B { constructor(a: i32) { super(x); } } export function add(a: i32, b: i32): i32 { new B(a); return a + b; } I be... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | saulecabrera |
| hostname | github.com |
| expected-hostname | github.com |
| None | 52c95ce7e48016ae14399656b4ee812462b6f1fa28c5008c8394da64794c00b8 |
| turbo-cache-control | no-preview |
| go-import | github.com/AssemblyScript/assemblyscript git https://github.com/AssemblyScript/assemblyscript.git |
| octolytics-dimension-user_id | 28916798 |
| octolytics-dimension-user_login | AssemblyScript |
| octolytics-dimension-repository_id | 105138356 |
| octolytics-dimension-repository_nwo | AssemblyScript/assemblyscript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 105138356 |
| octolytics-dimension-repository_network_root_nwo | AssemblyScript/assemblyscript |
| 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 | 1c9ddec8215f9a94e295c8310c3579b9c54ba31a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width