aboutsummaryrefslogtreecommitdiff
path: root/tests/langerrors/fixed_to_dyn.zc
blob: 483f62fc72a2365d5b7d90d34239490fecce52c5 (plain) (blame)
1
2
3
4
// expect: type error: argument: expected []int, got fixed []int
typecheck on;
int take([]int.m g) { return len(g); }
fn main() { fixed []int f = new(fixed []int, 3); take(f); free(d*f); return 0; }