Case 1:
Snippet:
ref public struct MyStruct;
Expected:
ref is in the modifiers list for MyStruct, error about its misplacement
Actual:
ref is a part of RefTypeSyntax of IncompleteMemberSyntax while StructDeclarationSyntax starts from a public token. The error is 'Type expected' on public token
Case 2:
Snippet:
partial ref struct MyStruct;
Expected:
partial is in the modifiers list for MyStruct, error about its misplacement
Actual:
partial is its own IncompleteMemberSyntax. The error is on ref keyword saying about its misplacement instead
Case 1:
Snippet:
Expected:
refis in the modifiers list forMyStruct, error about its misplacementActual:
refis a part ofRefTypeSyntaxofIncompleteMemberSyntaxwhileStructDeclarationSyntaxstarts from apublictoken. The error is 'Type expected' onpublictokenCase 2:
Snippet:
Expected:
partialis in the modifiers list forMyStruct, error about its misplacementActual:
partialis its ownIncompleteMemberSyntax. The error is onrefkeyword saying about its misplacement instead