commit 7af78b4eb5851e659a672356796624ea09b64408
parent e71c40a5ac4f6cde512124b7289c1bfe9e1e0cc1
Author: Drew DeVault <sir@cmpwn.com>
Date: Fri, 1 Jan 2021 14:29:46 -0500
Make nullable deref test fail for right reasons
Once we have a bit more string support, it might be nice to add the
expected error message to our assertion.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/03-pointers.ha b/tests/03-pointers.ha
@@ -16,7 +16,7 @@ fn _nullable() void = {
assert(*(x: *int) == 42);
assert(rt::compile(
- "fn test() void = { let x: nullable *int = null; *x; };",
+ "fn test() void = { let x: nullable *int = null; let z = *x; };",
) != 0);
};