aboutsummaryrefslogtreecommitdiff
path: root/tests/typeerrors/ret.zc
blob: 8ac4edb644c0ec6c8536122f3dda9e0941cb70d2 (plain) (blame)
1
2
3
4
5
6
namespace;

// expect: type error: return value: expected bool, got char*
typecheck on;
bool f() { return "no"; }
fn main() { return f(); }