❯ pintc all_types.pnt
Error: compiler internal error: only ints, bools, and maps are currently allowed in a storage block
╭─[all_types.pnt:7:5]
│
7 │ x: Foo,
│ ────┬───
│ ╰───── only ints, bools, and maps are currently allowed in a storage block
───╯
We should instead be emitting an error that indicates that the type Foo does not exist. If we were to write this instead:
predicate Foo {
var x: Foo;
}
we would get
Error: undefined type
╭─[all_types.pnt:7:12]
│
7 │ var x: Foo;
│ ─┬─
│ ╰─── type is undefined
───╯
E.g.
Errors:
We should instead be emitting an error that indicates that the type
Foo
does not exist. If we were to write this instead:we would get
which is reasonable.