Skip to content

Conversation

@stbau04
Copy link
Contributor

@stbau04 stbau04 commented Oct 20, 2025

Remove unnecessary variable declaration i accidently added in #80483 as noted in #80483 (comment) to avoid any further confusion on how this was intended

@stbau04 stbau04 requested a review from a team as a code owner October 20, 2025 19:45
@dotnet-policy-service dotnet-policy-service bot added the Community The pull request was submitted by a contributor who is not a Microsoft employee. label Oct 20, 2025
else
{
// Inconsistent accessibility: type '{1}' is less accessible than class '{0}'
var lessVisibleTypeLocation = lessVisibleType.GetFirstLocation();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As was already mentioned, we wouldn't want to use this here, since this situation doesn't indicate any problem with the definition of lessVisibleType (which may not be defined in source anyway), just with this particular usage.

@stbau04
Copy link
Contributor Author

stbau04 commented Oct 21, 2025

Ig this could be merged?

@RikkiGibson RikkiGibson merged commit 7f4062e into dotnet:main Oct 21, 2025
25 checks passed
@RikkiGibson
Copy link
Member

Thanks @stbau04!

@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Oct 21, 2025
333fred added a commit to 333fred/roslyn that referenced this pull request Oct 22, 2025
* upstream/main: (123 commits)
  Fix SafeContext of Span-valued collection expressions to match specification (dotnet#80684)
  Improve detection of invalid references for implicitly typed expression variables declared within implicit object creation expressions. (dotnet#80546)
  Add test demonstrating behavior of ToMinimalDisplayString. (dotnet#80757)
  Only set DOTNET_HOST_PATH if something was installed (dotnet#80842)
  Clean up a Razor external access service (dotnet#80830)
  Remove unused statement (dotnet#80823)
  Allow foreach on typed null enumerables (dotnet#80783)
  Update documentation for DeclaringSyntaxReferences and Locations to clarify partial members behavior (dotnet#80704)
  Fix issue converting an auto prop to a full prop when 'field' and 'initializers' are involved
  Rename childIsSimple to innerExpressionHasPrimaryPrecedence and add more test cases
  Remove placeholder WorkItem attributes from new tests
  Fix RemoveUnnecessaryParentheses to detect simple expressions in bitwise operations
  [main] Update dependencies from dotnet/arcade (dotnet#80828)
  Fix ITypeSymbol.BaseType documentation for type parameters (dotnet#80770)
  soft-select select camelcase matched item if user might be typing an undefined type parameter (dotnet#80809)
  Allow semantic tokens in Razor to be better behaved (dotnet#80815)
  Rebase
  Remove using
  Update test
  Add fix all test
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Compilers Community The pull request was submitted by a contributor who is not a Microsoft employee.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants