From 27d233cef76f9ae3086a6ec5e33c347e2af64796 Mon Sep 17 00:00:00 2001 From: Vexu Date: Mon, 12 Oct 2020 12:20:32 +0300 Subject: stage2: basic switch validation --- src/value.zig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/value.zig') diff --git a/src/value.zig b/src/value.zig index e8fe848d5d..a7c3afbd6b 100644 --- a/src/value.zig +++ b/src/value.zig @@ -1242,6 +1242,10 @@ pub const Value = extern union { return compare(a, .eq, b); } + pub fn hash(a: Value) u64 { + @panic("TODO Value.hash"); + } + /// Asserts the value is a pointer and dereferences it. /// Returns error.AnalysisFail if the pointer points to a Decl that failed semantic analysis. pub fn pointerDeref(self: Value, allocator: *Allocator) error{ AnalysisFail, OutOfMemory }!Value { -- cgit v1.2.3