aboutsummaryrefslogtreecommitdiff
path: root/test/cases/array.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-01-22 23:20:53 -0500
committerAndrew Kelley <superjoe30@gmail.com>2017-01-22 23:21:00 -0500
commite5b17580107ad0783b7f07de100aeb9ccf175603 (patch)
treec91671f234ac448b22286aeb00946d319c8b5c05 /test/cases/array.zig
parent201a3c121a5c28273138b1160c5aac4e24d619bd (diff)
downloadzig-e5b17580107ad0783b7f07de100aeb9ccf175603.tar.gz
zig-e5b17580107ad0783b7f07de100aeb9ccf175603.zip
remove staticEval builtin in favor of comptime expression
Diffstat (limited to 'test/cases/array.zig')
-rw-r--r--test/cases/array.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cases/array.zig b/test/cases/array.zig
index f29d36b680..79dcf21407 100644
--- a/test/cases/array.zig
+++ b/test/cases/array.zig
@@ -49,7 +49,7 @@ fn arrayLiteral() {
fn arrayDotLenConstExpr() {
@setFnTest(this);
- assert(@staticEval(some_array.len) == 4);
+ assert(comptime {some_array.len == 4});
}
const ArrayDotLenConstExpr = struct {