You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix @attr+do/body concatenation and expand issue0601 tests
Handle `do` and `body` after @-attribute identifiers (e.g. `@safe do`,
`@nogc body`) by routing them through formatKeyword().
`do` is a keyword so any `identifier do` must be a contract.
`body` is an identifier that can also be a variable name, so it needs
the additional guard peekIs(tok!"{") to distinguish contract `body`
from variable declarations like `@custom body = 3;`.
Also add regression tests for `@custom body = 3;` and
`SomeStruct body = foo();`.
0 commit comments