Files @ ef37386d0c6f
Branch filter:

Location: CSY/reowolf/testdata/eval/positive/9.pdl

MH
Put expression types of procedures in type table

Before we annotated the AST. But that is silly in hindsight:
certain operations have a completely different meaning when applied
in a polymorphic context (i.e. the field index determined by a
select expression).
#version 100

composite main() {}

int test() {
	msg[] x = {create(4)};
	x[0][0] = 0;
	x[x[0][0]][1] = 1;
	x[x[0][0]][x[0][1]+x[0][1]] = 2;
	x[x[0][0]][3] = 3;
	return x.length + x[0].length + x[x[0][0]][x[0][3]];
}