aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/child_recast.zc
blob: 8d44a4c53fce5fa832784a9b0a9c99ffd4b5211a (plain) (blame)
1
2
3
4
5
namespace;
include rt;

// expect: c: belongs to a container; recast the container instead
fn main() { let p = rt.new(2), c = rt.new(1); p[0] = c; d*c; return 0; }