-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
Description
Version Used: 8adbb93
Steps to Reproduce:
Run the test CSharpCompletionCommandHandlerTests.LocalFunctionAttributeNamedPropertyCompletionCommitWithTab and wait for an assertion failure in SyntaxTreeExtensions.VerifySource.
The test attempts to apply this change and incrementally parse the result:
class MyAttribute : System.Attribute
{
public string Name { get; set; }
}
public class Goo
{
void M()
{
- [MyAttribute(Nam
+ [MyAttribute(Name =
void local1() { }
}
}
Expected Behavior:
The full text of the CompilationUnitSyntax should match this original SyntaxTree text:
class MyAttribute : System.Attribute
{
public string Name { get; set; }
}
public class Goo
{
void M()
{
[MyAttribute(Name =
void local1() { }
}
}
Actual Behavior:
The full text of the CompilationUnitSyntax is this:
class MyAttribute : System.Attribute
{
public string Name { get; set; }
}
public class Goo
{
void M()
{
{ }
}
}
Reactions are currently unavailable