aboutsummaryrefslogtreecommitdiff
path: root/tests/langerrors/tagenum_args.zc
blob: 23fcf2bf3b46fe0dcf37033a26105b5a6c4102c7 (plain) (blame)
1
2
3
4
5
6
namespace;
include rt;

// expect: wrong number of arguments
enum shape { circle { int r; }, dot };
fn main() { shape* s = shape.circle(1, 2); rt.free(d*s); return 0; }