-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix 'move type' with file scoped namespaces #55020
Fix 'move type' with file scoped namespaces #55020
Conversation
Azure Pipelines successfully started running 3 pipeline(s). |
@@ -320,6 +320,31 @@ class Class1 { } | |||
await TestMoveTypeToNewFileAsync(code, codeAfterMove, expectedDocumentName, destinationDocumentText); | |||
} | |||
|
|||
[WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsMoveType)] | |||
public async Task MoveTypeWithWithFileScopedNamespace() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a tests for moving Class1 and Class2 with this setup? Assuming this is valid with filescoped namespaces
namespace N1;
class Class1
{
Nested.Class2 C2 { get; }
}
namespace Nested
{
class Class2 { }
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's not valid. it's illegal to mix/match a file-scoped namespace with any other sort of namespace (including another file scoped namespace).
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
ping @ryzngard |
Relates to test plan: #49000