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
module Test;
import spicy;
const bar: set<string> = set("foo");
function is_bar(x: string): bool {
if ( x in bar )
return True;
return False;
}
public type PDU = unit {
: bytes &eod;
on %done {
print is_bar("foo");
}
};
The below example fails to compile.
The error displayed is
Changing
const
toglobal
ensures successful compilation.The text was updated successfully, but these errors were encountered: