aboutsummaryrefslogtreecommitdiff
path: root/tests/typeerrors/arith.zc
blob: fada7702f1a62fdaccb4c80dff089a205aff4b76 (plain) (blame)
1
2
3
4
5
namespace;

// expect: type error: arithmetic needs numbers, got int*
typecheck on;
fn main() { int* p = 0; int x = p * 2; return x; }