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
Slight duplicate of #1790, but I was surprised by the "type 'auto' cannot be used for variable declaration" - is that needed/useful?
$ cat strange.spicy
module Test;
type T = unit() {
x: uint8;
};
public type U = unit() {
len: uint32;
ts: T[] &size=self.len {
for ( e in self.tss ) # typoed and should just be $$
print e.x;
}
};
$ spicyc -j strange.spicy -o /tmp/x.hlto
[error] strange.spicy:11:5-12:16: type 'auto' cannot be used for variable declaration
[error] strange.spicy:11:16-11:23: unsupported operator: <Test::U>.tss
[error] strange.spicy:12:13-12:15: unsupported operator: <auto>.x
[error] spicyc: aborting after errors
The text was updated successfully, but these errors were encountered:
It's a prioritization issue in the output: the right error is the 2nd (modulo #1790), the 1st and 3rd are follow-ups that would better be suppressed (which is possible, just needs a bit of additional logic in the validator).
Slight duplicate of #1790, but I was surprised by the "type 'auto' cannot be used for variable declaration" - is that needed/useful?
The text was updated successfully, but these errors were encountered: