Problem description
When the interface declares a function with [mutating], the implementation also has to have [mutating].
If the implementation didn't have the keyword, Slang crashes with an internal error.
Goal
We should print a proper error for the mistake.
Or it should work even when the implementation didn't have the matching [mutating] keyword.
Repro steps
The following code can reproduce the issue.
Problem description When the interface declares a function with
[mutating]
, the implementation also has to have[mutating]
. If the implementation didn't have the keyword, Slang crashes with an internal error.Goal We should print a proper error for the mistake. Or it should work even when the implementation didn't have the matching
[mutating]
keyword.Repro steps The following code can reproduce the issue.
Note that the modifier
out
is required to reproduce the issue.