René's URL Explorer Experiment


Title: Add semantic error test for assignment to literal by amritamishra01 · Pull Request #2871 · lcompilers/lpython · GitHub

Open Graph Title: Add semantic error test for assignment to literal by amritamishra01 · Pull Request #2871 · lcompilers/lpython

X Title: Add semantic error test for assignment to literal by amritamishra01 · Pull Request #2871 · lcompilers/lpython

Description: This Pull Request adds a new semantic error test to ensure LPython correctly rejects assignments to literal values. ✔ What this PR does Adds a new test: tests/errors/reproduce_bug_01.py The test ch...

Open Graph Description: This Pull Request adds a new semantic error test to ensure LPython correctly rejects assignments to literal values. ✔ What this PR does Adds a new test: tests/errors/reproduce_bug_01.py The test ch...

X Description: This Pull Request adds a new semantic error test to ensure LPython correctly rejects assignments to literal values. ✔ What this PR does Adds a new test: tests/errors/reproduce_bug_01.py The test ch...

Opengraph URL: https://github.com/lcompilers/lpython/pull/2871

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:34733bfb-2cdb-4cd3-b49f-a58f6df1ee68
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD0EE:15F89A:29E7B45:388F991:696AEB3B
html-safe-nonce0096ac510d0f90157cbc2389dc44a963d7b13f53b6a545b1ec2155a1f1483da0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMEVFOjE1Rjg5QToyOUU3QjQ1OjM4OEY5OTE6Njk2QUVCM0IiLCJ2aXNpdG9yX2lkIjoiNjgzODQ0OTg1NTMzMjU0MzI5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacacd05f332bca1c4ced38451df0eec35e10214d42b3dfe7d252497f52205f23f6
hovercard-subject-tagpull_request:3055039427
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/lcompilers/lpython/2871/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/834c91417fa3a708f284e6adbd96c428eb1304f4ee2873f55a5e15ec3f60a326/lcompilers/lpython/pull/2871
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/834c91417fa3a708f284e6adbd96c428eb1304f4ee2873f55a5e15ec3f60a326/lcompilers/lpython/pull/2871
og:image:altThis Pull Request adds a new semantic error test to ensure LPython correctly rejects assignments to literal values. ✔ What this PR does Adds a new test: tests/errors/reproduce_bug_01.py The test ch...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameamritamishra01
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
go-importgithub.com/lcompilers/lpython git https://github.com/lcompilers/lpython.git
octolytics-dimension-user_id96538276
octolytics-dimension-user_loginlcompilers
octolytics-dimension-repository_id442864346
octolytics-dimension-repository_nwolcompilers/lpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id442864346
octolytics-dimension-repository_network_root_nwolcompilers/lpython
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
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/lcompilers/lpython/pull/2871#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flcompilers%2Flpython%2Fpull%2F2871
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flcompilers%2Flpython%2Fpull%2F2871
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=lcompilers%2Flpython
Reloadhttps://github.com/lcompilers/lpython/pull/2871
Reloadhttps://github.com/lcompilers/lpython/pull/2871
Reloadhttps://github.com/lcompilers/lpython/pull/2871
lcompilers https://github.com/lcompilers
lpythonhttps://github.com/lcompilers/lpython
Notifications https://github.com/login?return_to=%2Flcompilers%2Flpython
Fork 173 https://github.com/login?return_to=%2Flcompilers%2Flpython
Star 1.6k https://github.com/login?return_to=%2Flcompilers%2Flpython
Code https://github.com/lcompilers/lpython
Issues 503 https://github.com/lcompilers/lpython/issues
Pull requests 85 https://github.com/lcompilers/lpython/pulls
Actions https://github.com/lcompilers/lpython/actions
Projects 0 https://github.com/lcompilers/lpython/projects
Wiki https://github.com/lcompilers/lpython/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/lcompilers/lpython/security
Please reload this pagehttps://github.com/lcompilers/lpython/pull/2871
Insights https://github.com/lcompilers/lpython/pulse
Code https://github.com/lcompilers/lpython
Issues https://github.com/lcompilers/lpython/issues
Pull requests https://github.com/lcompilers/lpython/pulls
Actions https://github.com/lcompilers/lpython/actions
Projects https://github.com/lcompilers/lpython/projects
Wiki https://github.com/lcompilers/lpython/wiki
Security https://github.com/lcompilers/lpython/security
Insights https://github.com/lcompilers/lpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Flcompilers%2Flpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Flcompilers%2Flpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/lcompilers/lpython/pull/2871#issue-comment-box
amritamishra01https://github.com/amritamishra01
lcompilers:mainhttps://github.com/lcompilers/lpython/tree/main
amritamishra01:add-semantic-error-testhttps://github.com/amritamishra01/lpython/tree/add-semantic-error-test
Add semantic error test for assignment to literal https://github.com/lcompilers/lpython/pull/2871#top
amritamishra01https://github.com/amritamishra01
lcompilers:mainhttps://github.com/lcompilers/lpython/tree/main
amritamishra01:add-semantic-error-testhttps://github.com/amritamishra01/lpython/tree/add-semantic-error-test
Conversation 2 https://github.com/lcompilers/lpython/pull/2871
Commits 6 https://github.com/lcompilers/lpython/pull/2871/commits
Checks 18 https://github.com/lcompilers/lpython/pull/2871/checks
Files changed https://github.com/lcompilers/lpython/pull/2871/files
Please reload this pagehttps://github.com/lcompilers/lpython/pull/2871
https://github.co/hiddenchars
https://github.com/lcompilers/lpython/pull/{{ revealButtonHref }}
https://github.com/amritamishra01
amritamishra01https://github.com/amritamishra01
Nov 28, 2025https://github.com/lcompilers/lpython/pull/2871#issue-3676030771
Please reload this pagehttps://github.com/lcompilers/lpython/pull/2871
amritamishra01https://github.com/amritamishra01
November 28, 2025 21:40https://github.com/lcompilers/lpython/pull/2871#commits-pushed-a3b62cb
https://github.com/amritamishra01
Add semantic error test for assignment to literalhttps://github.com/lcompilers/lpython/pull/2871/commits/a3b62cba31c428bd7566dd81fc2b86088fb45e3e
a3b62cbhttps://github.com/lcompilers/lpython/pull/2871/commits/a3b62cba31c428bd7566dd81fc2b86088fb45e3e
https://github.com/amritamishra01
Fix: prevent assignment to literal (semantic error)https://github.com/lcompilers/lpython/pull/2871/commits/8f557cbcfa9bf3dcaede02799b8011ff70304abb
8f557cbhttps://github.com/lcompilers/lpython/pull/2871/commits/8f557cbcfa9bf3dcaede02799b8011ff70304abb
https://github.com/amritamishra01
Remove forbidden iostream headerhttps://github.com/lcompilers/lpython/pull/2871/commits/7afdb32591dfecee78c03e5b91408a428f73074c
7afdb32https://github.com/lcompilers/lpython/pull/2871/commits/7afdb32591dfecee78c03e5b91408a428f73074c
https://github.com/amritamishra01
Fix: Use correct AST types for literal assignment checkhttps://github.com/lcompilers/lpython/pull/2871/commits/94fabb0765e46b6c213fb9974ef13c3bd8d34414
94fabb0https://github.com/lcompilers/lpython/pull/2871/commits/94fabb0765e46b6c213fb9974ef13c3bd8d34414
https://github.com/amritamishra01
CI: re-run testshttps://github.com/lcompilers/lpython/pull/2871/commits/85d32c6fa38cde30e35229903e2058c92faf7ad8
85d32c6https://github.com/lcompilers/lpython/pull/2871/commits/85d32c6fa38cde30e35229903e2058c92faf7ad8
https://github.com/amritamishra01
amritamishra01https://github.com/amritamishra01
Nov 29, 2025https://github.com/lcompilers/lpython/pull/2871#issuecomment-3591508382
Please reload this pagehttps://github.com/lcompilers/lpython/pull/2871
https://github.com/amritamishra01
Merge branch 'main' into add-semantic-error-testhttps://github.com/lcompilers/lpython/pull/2871/commits/50b293854fc314e95dcdbe34b6d83f9012034c9b
50b2938https://github.com/lcompilers/lpython/pull/2871/commits/50b293854fc314e95dcdbe34b6d83f9012034c9b
https://github.com/amritamishra01
amritamishra01https://github.com/amritamishra01
Dec 11, 2025https://github.com/lcompilers/lpython/pull/2871#issuecomment-3642005188
Please reload this pagehttps://github.com/lcompilers/lpython/pull/2871
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flcompilers%2Flpython%2Fpull%2F2871
Please reload this pagehttps://github.com/lcompilers/lpython/pull/2871
https://github.com/amritamishra01
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.