-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mtype subtype checking fails when read to fields in typedef #70
Comments
thanks for the report. |
I tried to complete your example, to reproduce the problem -- but I do not get the error message you reported: typedef St { chan Channel = [0] of { mtype:Symbol }; active proctype Bar() { active proctype Foo() {
} (Spin Version 6.5.2 -- 30 May 2023) Full statespace search for: State-vector 28 byte, depth reached 4, errors: 0 Stats on memory usage (in Megabytes): unreached in proctype Bar pan: elapsed time 0 seconds |
Sorry for the confusion, but it happens in replay rather than output. With inserting
Probably it does not affect the correctness. Just that error message is standing out. |
yes, I can reproduce it now. I made an attempt to fix it, but it gets tricky -- so I'm going to leave it for now. |
For example,
(The code piece is incomplete. It's cherry-picked from a large codebase.)
When running spin on it, it complains:
I think spin should check the type of
s.sym
rather thans
? Or do I understand mtype subtyping wrong?The text was updated successfully, but these errors were encountered: