aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/branch_mismatch.zc
blob: bd1996898834fc1529cca8bb17e58fbc135d40c3 (plain) (blame)
1
2
3
// expect: x: ends the branches of an if in different states
fn take(.d p) { return p[0]; }
fn main() { let x = new(1); if (x[0]) take(d*x); else u*x; return 0; }