declaring map at the global level to be used in a storage block
type MyMap = (int => int);
type MyInt = int;
type MyNestMap = (MyInt => int);
storage {
m: MyMap,
n: MyInt,
o: MyNestMap,
}
Disallows:
using map type declaration as a var
predicate test {
type MyMap = (int => int);
var y: MyMap;
var x: ( int => int );
}
and declaring a map type inside of the storage block
storage {
type MyMap = (b256 => int);
}
Let me know if there are other test scenarios I should include/work on
Closes #574
Allows:
Disallows:
Let me know if there are other test scenarios I should include/work on