René's URL Explorer Experiment


Title: enum: Underlying type · Issue #8028 · PowerShell/PowerShell · GitHub

Open Graph Title: enum: Underlying type · Issue #8028 · PowerShell/PowerShell

X Title: enum: Underlying type · Issue #8028 · PowerShell/PowerShell

Description: Enumerations in PowerShell appear to be limited to Int32. Ideally enums should allow inheritance-style setting of the underlying type. Steps to reproduce PowerShell does not appear to allow an underlying type to be defined for an enum. A...

Open Graph Description: Enumerations in PowerShell appear to be limited to Int32. Ideally enums should allow inheritance-style setting of the underlying type. Steps to reproduce PowerShell does not appear to allow an unde...

X Description: Enumerations in PowerShell appear to be limited to Int32. Ideally enums should allow inheritance-style setting of the underlying type. Steps to reproduce PowerShell does not appear to allow an unde...

Opengraph URL: https://github.com/PowerShell/PowerShell/issues/8028

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"enum: Underlying type","articleBody":"Enumerations in PowerShell appear to be limited to Int32. Ideally enums should allow inheritance-style setting of the underlying type.\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\nPowerShell does not appear to allow an underlying type to be defined for an enum. All values are coerced to Int32.\r\n\r\nThe statement below will raise an exception:\r\n```powershell\r\nenum Fruit { Apple = 0x0FFFFFFFFFFFFFFF }\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\nAn enumeration wiith underlying type set to [Int64] to be created.\r\n\r\n```powershell\r\nenum Fruit { Apple = 0x0FFFFFFFFFFFFFFF }\r\n[Fruit].GetEnumUnderlyingType() -eq [Int64]\r\n```\r\n\r\nActual behavior\r\n---------------\r\n\r\nAn exception is throw when the attempt to cast fails.\r\n\r\n```none\r\nEnumerator value is too large for a System.Int.\r\n```\r\n\r\nEnvironment data\r\n----------------\r\n\r\n```powershell\r\n> $PSVersionTable\r\nName                           Value\r\n----                           -----\r\nPSVersion                      6.1.0\r\nPSEdition                      Core\r\nGitCommitId                    6.1.0\r\nOS                             Microsoft Windows 10.0.17134\r\nPlatform                       Win32NT\r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}\r\nPSRemotingProtocolVersion      2.3\r\nSerializationVersion           1.1.0.1\r\nWSManStackVersion              3.0\r\n```\r\n","author":{"url":"https://github.com/indented-automation","@type":"Person","name":"indented-automation"},"datePublished":"2018-10-15T13:18:09Z","url":"https://github.com/PowerShell/PowerShell/issues/8028"}

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:3faa50d7-7eb9-7a29-90d1-d4ed10bbe029
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBBCC:1316A0:6CAF71:98D9C6:6AFDC0B8
html-safe-noncebcb17982edfb435e6fcda7ac9f4936ded3040a208f257faa61c871682f274290
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkNDOjEzMTZBMDo2Q0FGNzE6OThEOUM2OjZBRkRDMEI4IiwidmlzaXRvcl9pZCI6IjM1NjYxNjEzMjgxOTgyMzgzOTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac75193593c1f54a40004454fb255416692b6af9c959fe9735d8d4ab0d33f3c605
hovercard-subject-tagissue:370159170
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/PowerShell/PowerShell/8028/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9f01abe87ac4eae6a44530edb9f415d986f7a9db22486be1bdc400e04995a06d/PowerShell/PowerShell/issues/8028
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9f01abe87ac4eae6a44530edb9f415d986f7a9db22486be1bdc400e04995a06d/PowerShell/PowerShell/issues/8028
og:image:altEnumerations in PowerShell appear to be limited to Int32. Ideally enums should allow inheritance-style setting of the underlying type. Steps to reproduce PowerShell does not appear to allow an unde...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameindented-automation
hostnamegithub.com
expected-hostnamegithub.com
None35c6bf57da1370dc64866160540c0ee9f825f291935b3bf6ec5492b00e35f3a6
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
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
releaseab48c73a2978548773f5f24717ed9e58508befdb
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/8028#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F8028
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%2FPowerShell%2FPowerShell%2Fissues%2F8028
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=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/issues/8028
Reloadhttps://github.com/PowerShell/PowerShell/issues/8028
Reloadhttps://github.com/PowerShell/PowerShell/issues/8028
PowerShellhttps://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Codehttps://github.com/PowerShell/PowerShell
Issues1.3k (1.3k)https://github.com/PowerShell/PowerShell/issues
Pull requests366 (366)https://github.com/PowerShell/PowerShell/pulls
Discussionshttps://github.com/PowerShell/PowerShell/discussions
Actionshttps://github.com/PowerShell/PowerShell/actions
Projectshttps://github.com/PowerShell/PowerShell/projects
Security and quality3 (3)https://github.com/PowerShell/PowerShell/security
Insightshttps://github.com/PowerShell/PowerShell/insights
https://github.com/PowerShell/PowerShell
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/8028
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/8028
#8329https://github.com/PowerShell/PowerShell/pull/8329
enum: Underlying typehttps://github.com/PowerShell/PowerShell/issues/8028#top
#8329https://github.com/PowerShell/PowerShell/pull/8329
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Discussion%22
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
https://github.com/indented-automation
Chris Dent (indented-automation)https://github.com/indented-automation
on Oct 15, 2018https://github.com/PowerShell/PowerShell/issues/8028#issue-370159170
https://github.com/vexx32
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Oct 15, 2018https://github.com/PowerShell/PowerShell/issues/8028#issuecomment-429852679
Ilya (iSazonov)https://github.com/iSazonov
Issue-Enhancementthe issue is more of a feature request than a bughttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Enhancement%22
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
on Oct 16, 2018https://github.com/PowerShell/PowerShell/issues/8028#event-1906202655
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Oct 16, 2018https://github.com/PowerShell/PowerShell/issues/8028#issuecomment-430160073
Rob Holt (@rjmholt)https://github.com/rjmholt
https://github.com/rjmholt
Rob Holt (rjmholt)https://github.com/rjmholt
on Oct 16, 2018https://github.com/PowerShell/PowerShell/issues/8028#issuecomment-430291269
Chris Dent (@indented-automation)https://github.com/indented-automation
https://github.com/vexx32
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Oct 16, 2018https://github.com/PowerShell/PowerShell/issues/8028#issuecomment-430292528
Rob Holt (@rjmholt)https://github.com/rjmholt
https://github.com/rjmholt
Rob Holt (rjmholt)https://github.com/rjmholt
on Oct 16, 2018https://github.com/PowerShell/PowerShell/issues/8028#issuecomment-430294242
https://github.com/vexx32
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Oct 16, 2018https://github.com/PowerShell/PowerShell/issues/8028#issuecomment-430295401
https://github.com/rjmholt
Rob Holt (rjmholt)https://github.com/rjmholt
on Oct 16, 2018https://github.com/PowerShell/PowerShell/issues/8028#issuecomment-430301727
value__ fieldhttps://stackoverflow.com/a/22830894
Ilya (iSazonov)https://github.com/iSazonov
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Discussion%22
Issue-Enhancementthe issue is more of a feature request than a bughttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Enhancement%22
on Oct 17, 2018https://github.com/PowerShell/PowerShell/issues/8028#event-1908432040
Travis Plunk (TravisEz13)https://github.com/TravisEz13
completedhttps://github.com/PowerShell/PowerShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#8329https://github.com/PowerShell/PowerShell/pull/8329
on Jan 17, 2019https://github.com/PowerShell/PowerShell/issues/8028#event-2081544625
Travis Plunk (TravisEz13)https://github.com/TravisEz13
on Jan 17, 2019https://github.com/PowerShell/PowerShell/issues/8028#event-2081544823
Allow user-specified underlying type for enums (#8329)https://github.com/PowerShell/PowerShell/commit/59a3696f7093a9701f45caeebfc5ee4d0d5306cc
#8329https://github.com/PowerShell/PowerShell/pull/8329
https://docs.github.com/articles/closing-issues-via-commit-messages
59a3696https://github.com/PowerShell/PowerShell/commit/59a3696f7093a9701f45caeebfc5ee4d0d5306cc
Ilya (iSazonov)https://github.com/iSazonov
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
on Jan 18, 2019https://github.com/PowerShell/PowerShell/issues/8028#event-2081992892
https://github.com/msftrncs
Carl Morris (msftrncs)https://github.com/msftrncs
on Jan 23, 2019https://github.com/PowerShell/PowerShell/issues/8028#issuecomment-456628525
https://github.com/rjmholt
Rob Holt (rjmholt)https://github.com/rjmholt
on Jan 23, 2019https://github.com/PowerShell/PowerShell/issues/8028#issuecomment-456641863
https://github.com/SwissPowershell
Yann.G (SwissPowershell)https://github.com/SwissPowershell
on Feb 3, 2025https://github.com/PowerShell/PowerShell/issues/8028#issuecomment-2630638326
Thatgfsj (Thatgfsj)https://github.com/Thatgfsj
on Aug 6, 2026https://github.com/PowerShell/PowerShell/issues/8028#event-29091186430
Allow user-specified underlying type for enums (PowerShell#8329)https://github.com/Thatgfsj-contribs/PowerShell/commit/450c509b2d909079a52c7b9d161360434ba4895b
PowerShell#8329https://github.com/PowerShell/PowerShell/pull/8329
https://docs.github.com/articles/closing-issues-via-commit-messages
450c509https://github.com/Thatgfsj-contribs/PowerShell/commit/450c509b2d909079a52c7b9d161360434ba4895b
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/PowerShell/issues/8028
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/8028
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Discussion%22
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
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.