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

// expect: type error: only pointers can be dereferenced, got int
typecheck on;
fn main() { int x = 3; return *x; }