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
Description
When using a payload without the [raypayload] attribute on the struct, you get a diagnostic error pointing at the variable declaration, such as:
<file:line>: error: type 'Payload' used as payload requires that it is annotated with the [raypayload] attribute
MyPayload pld;
^
The problem is with the type used, so just pointing at the variable declaration does not show you where the attribute was expected. It should add a note pointing to the struct declaration, and provide a fixit for the location of the attribute, since the location is not very intuitive: between the struct and the name of the struct.
Description
When using a payload without the
[raypayload]
attribute on the struct, you get a diagnostic error pointing at the variable declaration, such as:The problem is with the type used, so just pointing at the variable declaration does not show you where the attribute was expected. It should add a note pointing to the struct declaration, and provide a fixit for the location of the attribute, since the location is not very intuitive: between the
struct
and the name of the struct.Steps to Reproduce
https://godbolt.org/z/7sq5q17h6
The text was updated successfully, but these errors were encountered: