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
packageTestistype Length ismod2**16;
type Address ismod2**32;
type Message is
message
Length : Length
then Data
with Length => 8 * Length;
Data : Opaque;
endmessage;
for Message use (Data => Address)
if Length = 17;
endTest;
Using a scalar type in a refinement, yields the following error:
Parsing test.rflxProcessing Testtest.rflx:13:29: parser: error: undefined type "Test.Address" in refinement of "Test.Message"
We should either support that or at least emit a better error message (stating that the type was found, but is not suitable).
The text was updated successfully, but these errors were encountered:
The scalar type could be wrapped in a message to make such a refinement possible. As there is no concrete use case, I don't think it would be worth the effort to support this special case. We should just improve the error message.
treiher
changed the title
Support scalar types in refinements
Improve error message for scalar types in refinements
Aug 4, 2020
Using a scalar type in a refinement, yields the following error:
We should either support that or at least emit a better error message (stating that the type was found, but is not suitable).
The text was updated successfully, but these errors were encountered: