Title: missing property reference error ignored if followed by unary operator · Issue #9564 · PowerShell/PowerShell · GitHub
Open Graph Title: missing property reference error ignored if followed by unary operator · Issue #9564 · PowerShell/PowerShell
X Title: missing property reference error ignored if followed by unary operator · Issue #9564 · PowerShell/PowerShell
Description: I found this by accident, left the . property reference while testing ideas. I think it is incorrect that this code goes without any errors, and also generates no result. Steps to reproduce $Departments = @' Alpha Beta Gamma Zulu '@. -sp...
Open Graph Description: I found this by accident, left the . property reference while testing ideas. I think it is incorrect that this code goes without any errors, and also generates no result. Steps to reproduce $Depart...
X Description: I found this by accident, left the . property reference while testing ideas. I think it is incorrect that this code goes without any errors, and also generates no result. Steps to reproduce $Depart...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/9564
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"missing property reference error ignored if followed by unary operator","articleBody":"I found this by accident, left the `.` property reference while testing ideas.\r\n\r\nI think it is incorrect that this code goes without any errors, and also generates no result.\r\n\r\n# Steps to reproduce\r\n\r\n```powershell\r\n$Departments = @'\r\nAlpha\r\nBeta\r\nGamma\r\nZulu\r\n'@. -split '\\r'\r\n```\r\n\r\n# Expected behavior\r\n\r\n```none\r\nAt line:6 char:4\r\n+ '@.\r\n+ ~\r\nMissing property name after reference operator.\r\n+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException\r\n+ FullyQualifiedErrorId : MissingPropertyName\r\n```\r\n\r\n# Actual behavior\r\n\r\n```none\r\n\r\n```\r\nExactly, nothing happens, no error, no result. Any unary operator seems to do this. A non-unary operator will generate two error messages, missing property, and unexpected token (for the right operand).\r\n\r\n# Environment data\r\n\r\nPowerShell 6.2 on Windows 10 1809\r\nWindows PowerShell 5.1 (same OS)\r\n","author":{"url":"https://github.com/msftrncs","@type":"Person","name":"msftrncs"},"datePublished":"2019-05-08T16:53:51Z","url":"https://github.com/PowerShell/PowerShell/issues/9564"}
| 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:edc9f0fe-e4c1-4712-8130-510020eaab35 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8426:AF532:42A77:5AA9D:6AFE0FB1 |
| html-safe-nonce | 86d9ba6f39effcd8249d8b4ea2327cf670f16e0656d0f4818f659571ba53b4ab |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDI2OkFGNTMyOjQyQTc3OjVBQTlEOjZBRkUwRkIxIiwidmlzaXRvcl9pZCI6IjYyMzc4NjQ5NDE3Njg4MDYzMjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 900d420524481e2202a8b707de3dbdade68bc547ea3a7b1c2e240ec3b2ad0cd8 |
| hovercard-subject-tag | issue:441832015 |
| 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/PowerShell/PowerShell/9564/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0e3643939126df0fe428dd0f28c5ce5eb96ca774487cacf7113cb30cae52b130/PowerShell/PowerShell/issues/9564 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0e3643939126df0fe428dd0f28c5ce5eb96ca774487cacf7113cb30cae52b130/PowerShell/PowerShell/issues/9564 |
| og:image:alt | I found this by accident, left the . property reference while testing ideas. I think it is incorrect that this code goes without any errors, and also generates no result. Steps to reproduce $Depart... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | msftrncs |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1fd4053be37b4bd545b4f38f1cecad058c343776acf2cbc6806316f26270e55e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| 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 | 635a57b3d0df6bc21c0f39fc7078888fb90e4066 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width