Skip to content

Fix potentially ambiguous System.Object in _Imports.razor#10999

Merged
jjonescz merged 3 commits intodotnet:mainfrom
jjonescz:global-prefix-imports
Oct 14, 2024
Merged

Fix potentially ambiguous System.Object in _Imports.razor#10999
jjonescz merged 3 commits intodotnet:mainfrom
jjonescz:global-prefix-imports

Conversation

@jjonescz
Copy link
Copy Markdown
Member

@jjonescz jjonescz commented Oct 10, 2024

See the added test and the second commit for the behavior change (previously it would fail to compile because of System.Object being there without any global:: prefix). Instead of global::-prefixing it, I chose to use the C# object keyword, because it's shorter (and also more unambiguous? I'm not sure).

I plan to look for other similar bugs in the codebase and open follow up PRs if I find any.

@jjonescz jjonescz added the area-compiler Umbrella for all compiler issues label Oct 10, 2024
@jjonescz jjonescz marked this pull request as ready for review October 10, 2024 13:07
@jjonescz jjonescz requested a review from a team as a code owner October 10, 2024 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-compiler Umbrella for all compiler issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants