// "connect-046.hac"
// copy-modified from "connect-045.hac"
// should fail creating:
// cannot alias a channel that is referenced by nonmeta index in CHP

chan(bool) X[4], Y;
chan(int<2>) Z;

bool b;
int<2> i;
Y = X[3];	// alias

chp {
*[ Y?(b) ];	// meta-referenced
*[ Z?(i); X[i]?(b) ]	// non-meta referenced
}
