Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,6 @@ static bool containsOnlyOblivious(TypeSymbol type)
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.

diagnostics.Add(ErrorCode.ERR_BadVisBaseType, baseTypeLocation, this, lessVisibleType);
}
}
Expand Down