From eba4b51b8187350952ad7894cffc23e9b655f8f3 Mon Sep 17 00:00:00 2001 From: Wei Fu Date: Tue, 16 Jul 2019 13:08:12 -0400 Subject: [PATCH] set vtype for newVar (#56) Signed-off-by: Wei Fu --- api/registry/registry.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/registry/registry.go b/api/registry/registry.go index 33c3f9616..094345bba 100644 --- a/api/registry/registry.go +++ b/api/registry/registry.go @@ -40,6 +40,7 @@ func Register(name string, vtype Type, opts ...Option) Variable { func newVar(name string, vtype Type, opts ...Option) Variable { v := Variable{ Name: name, + Type: vtype, } for _, o := range opts { v = o(v)