René's URL Explorer Experiment


Title: misleading compiler error · Issue #1699 · AssemblyScript/assemblyscript · GitHub

Open Graph Title: misleading compiler error · Issue #1699 · AssemblyScript/assemblyscript

X Title: misleading compiler error · Issue #1699 · AssemblyScript/assemblyscript

Description: See the output from my travis build using the latest AssemblyScript 0.18.11 ( upgrading from 0.17.7 ) https://travis-ci.com/github/petersalomonsen/javascriptmusic/jobs/485666265#L267 ERROR TS2469: The '++' operator cannot be applied to t...

Open Graph Description: See the output from my travis build using the latest AssemblyScript 0.18.11 ( upgrading from 0.17.7 ) https://travis-ci.com/github/petersalomonsen/javascriptmusic/jobs/485666265#L267 ERROR TS2469: ...

X Description: See the output from my travis build using the latest AssemblyScript 0.18.11 ( upgrading from 0.17.7 ) https://travis-ci.com/github/petersalomonsen/javascriptmusic/jobs/485666265#L267 ERROR TS2469: ...

Opengraph URL: https://github.com/AssemblyScript/assemblyscript/issues/1699

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"misleading compiler error","articleBody":"See the output from my travis build using the latest AssemblyScript 0.18.11 ( upgrading from 0.17.7 )\r\n\r\nhttps://travis-ci.com/github/petersalomonsen/javascriptmusic/jobs/485666265#L267\r\n\r\n```\r\nERROR TS2469: The '++' operator cannot be applied to type 'assembly/midi/midisynth/MidiVoice'.\r\n       for (let n=0; n \u003c numActiveVoices; n++) {\r\n                                          ~~~\r\n```\r\n\r\nI would expect that `n` is interpreted as type `i32` and not as `MidiVoice`.\r\n\r\nThe exact same code pass in AssemblyScript 0.17.7.\r\n\r\nAlso tested with 0.17.13 and 0.18.0, and found that the error was introduced in 0.18.0\r\n\r\n------------------\r\nTest case for reproducing:\r\n\r\n```\r\nclass Foo {\r\n\r\n}\r\n\r\nfunction test(): void {\r\n    const foos = new Array\u003cFoo>(1);\r\n    foos[0] = foos[0] = new Foo();\r\n\r\n    for (let n = 0; n \u003c foos.length; n++) {\r\n        const v = foos[n];\r\n    }\r\n}\r\n\r\ntest();\r\n```\r\n\r\nThe error is actually caused by a mistake in my code in the line `foos[0] = foos[0] = new Foo();` which should have been `foos[0] = new Foo();`. However the compile error message is misleading, and is not really a compile error.\r\n\r\nI'll look into this myself later on, but just wanted to file the issue in case anyone else get an instant idea of what it might be.\r\n","author":{"url":"https://github.com/petersalomonsen","@type":"Person","name":"petersalomonsen"},"datePublished":"2021-02-23T20:36:51Z","url":"https://github.com/AssemblyScript/assemblyscript/issues/1699"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f1dbbae1-96bd-7cac-c8e8-5d08ba37af45
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id91FA:2A02D3:72BA62:9EEE0B:6B009E59
html-safe-nonce0f26224d32f11676dd95974ec9ddcc8cce4030207e5807f52a90e811d49f05dc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUZBOjJBMDJEMzo3MkJBNjI6OUVFRTBCOjZCMDA5RTU5IiwidmlzaXRvcl9pZCI6IjU4MDY0OTM5ODcyMjUyNDczMjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6103770786d0265b0f82526158108e8488971ad2bd0b3de57f102cf0f543aa09
hovercard-subject-tagissue:814811015
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/AssemblyScript/assemblyscript/1699/issue_layout
twitter:imagehttps://opengraph.githubassets.com/78785112dd3eeca2e117b86571ea2848f211ac12c42ce35d2abf12e336c6edfe/AssemblyScript/assemblyscript/issues/1699
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/78785112dd3eeca2e117b86571ea2848f211ac12c42ce35d2abf12e336c6edfe/AssemblyScript/assemblyscript/issues/1699
og:image:altSee the output from my travis build using the latest AssemblyScript 0.18.11 ( upgrading from 0.17.7 ) https://travis-ci.com/github/petersalomonsen/javascriptmusic/jobs/485666265#L267 ERROR TS2469: ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepetersalomonsen
hostnamegithub.com
expected-hostnamegithub.com
None52c95ce7e48016ae14399656b4ee812462b6f1fa28c5008c8394da64794c00b8
turbo-cache-controlno-preview
go-importgithub.com/AssemblyScript/assemblyscript git https://github.com/AssemblyScript/assemblyscript.git
octolytics-dimension-user_id28916798
octolytics-dimension-user_loginAssemblyScript
octolytics-dimension-repository_id105138356
octolytics-dimension-repository_nwoAssemblyScript/assemblyscript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id105138356
octolytics-dimension-repository_network_root_nwoAssemblyScript/assemblyscript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1c9ddec8215f9a94e295c8310c3579b9c54ba31a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/AssemblyScript/assemblyscript/issues/1699#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FAssemblyScript%2Fassemblyscript%2Fissues%2F1699
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FAssemblyScript%2Fassemblyscript%2Fissues%2F1699
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=AssemblyScript%2Fassemblyscript
Reloadhttps://github.com/AssemblyScript/assemblyscript/issues/1699
Reloadhttps://github.com/AssemblyScript/assemblyscript/issues/1699
Reloadhttps://github.com/AssemblyScript/assemblyscript/issues/1699
AssemblyScripthttps://github.com/AssemblyScript
assemblyscripthttps://github.com/AssemblyScript/assemblyscript
Codehttps://github.com/AssemblyScript/assemblyscript
Issues196 (196)https://github.com/AssemblyScript/assemblyscript/issues
Pull requests24 (24)https://github.com/AssemblyScript/assemblyscript/pulls
Actionshttps://github.com/AssemblyScript/assemblyscript/actions
Wikihttps://github.com/AssemblyScript/assemblyscript/wiki
Security and qualityhttps://github.com/AssemblyScript/assemblyscript/security
Insightshttps://github.com/AssemblyScript/assemblyscript/insights
https://github.com/AssemblyScript/assemblyscript
New issuehttps://github.com/login?return_to=https://github.com/AssemblyScript/assemblyscript/issues/1699
New issuehttps://github.com/login?return_to=https://github.com/AssemblyScript/assemblyscript/issues/1699
#1703https://github.com/AssemblyScript/assemblyscript/pull/1703
misleading compiler errorhttps://github.com/AssemblyScript/assemblyscript/issues/1699#top
#1703https://github.com/AssemblyScript/assemblyscript/pull/1703
https://github.com/petersalomonsen
petersalomonsenhttps://github.com/petersalomonsen
on Feb 23, 2021https://github.com/AssemblyScript/assemblyscript/issues/1699#issue-814811015
https://travis-ci.com/github/petersalomonsen/javascriptmusic/jobs/485666265#L267https://travis-ci.com/github/petersalomonsen/javascriptmusic/jobs/485666265#L267
petersalomonsenhttps://github.com/petersalomonsen
on Feb 25, 2021https://github.com/AssemblyScript/assemblyscript/issues/1699#event-4377107895
petersalomonsenhttps://github.com/petersalomonsen
on Feb 28, 2021https://github.com/AssemblyScript/assemblyscript/issues/1699#event-4385566445
fix misleading compile error on multi-assignmenthttps://github.com/petersalomonsen/assemblyscript/commit/9dce45e812936fbb9b92ecabaef1981f178ad22f
https://docs.github.com/articles/closing-issues-via-commit-messages
9dce45ehttps://github.com/petersalomonsen/assemblyscript/commit/9dce45e812936fbb9b92ecabaef1981f178ad22f
fix misleading compile error on multi-assignmenthttps://github.com/petersalomonsen/assemblyscript/commit/76343da7fbb737825928836a38cd682f519627b7
https://docs.github.com/articles/closing-issues-via-commit-messages
76343dahttps://github.com/petersalomonsen/assemblyscript/commit/76343da7fbb737825928836a38cd682f519627b7
fix misleading compile error on multi-assignmenthttps://github.com/petersalomonsen/assemblyscript/commit/8150e34560a54f72193ea5b4eb233c170a09b36e
https://docs.github.com/articles/closing-issues-via-commit-messages
8150e34https://github.com/petersalomonsen/assemblyscript/commit/8150e34560a54f72193ea5b4eb233c170a09b36e
fix misleading compile error on multi-assignmenthttps://github.com/petersalomonsen/assemblyscript/commit/28fdf3be729920b035887446e8726a3b557ae26a
https://docs.github.com/articles/closing-issues-via-commit-messages
28fdf3bhttps://github.com/petersalomonsen/assemblyscript/commit/28fdf3be729920b035887446e8726a3b557ae26a
fix misleading compile error on multi-assignmenthttps://github.com/petersalomonsen/assemblyscript/commit/2c447833d91445eafc547814cd983637f80b8d1a
https://docs.github.com/articles/closing-issues-via-commit-messages
2c44783https://github.com/petersalomonsen/assemblyscript/commit/2c447833d91445eafc547814cd983637f80b8d1a
fix misleading compile error on multi-assignmenthttps://github.com/petersalomonsen/assemblyscript/commit/86706dd9fb80569624bd805b70d4a14d57a01a67
https://docs.github.com/articles/closing-issues-via-commit-messages
86706ddhttps://github.com/petersalomonsen/assemblyscript/commit/86706dd9fb80569624bd805b70d4a14d57a01a67
dcodeIOhttps://github.com/dcodeIO
completedhttps://github.com/AssemblyScript/assemblyscript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1703https://github.com/AssemblyScript/assemblyscript/pull/1703
on Mar 2, 2021https://github.com/AssemblyScript/assemblyscript/issues/1699#event-4397174418
Sign up for freehttps://github.com/signup?return_to=https://github.com/AssemblyScript/assemblyscript/issues/1699
Sign in to commenthttps://github.com/login?return_to=https://github.com/AssemblyScript/assemblyscript/issues/1699
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.