From 5267c0e8653b431cfd2c06212cdba4f22225bd02 Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 21 Apr 2022 03:18:46 +0200 Subject: Do not force generics for Expr and Stmt --- pkg/lang/ast/nodes.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkg/lang/ast/nodes.go') diff --git a/pkg/lang/ast/nodes.go b/pkg/lang/ast/nodes.go index 699d025..55dbb5b 100644 --- a/pkg/lang/ast/nodes.go +++ b/pkg/lang/ast/nodes.go @@ -9,10 +9,11 @@ type IdentNode struct { type BlockNode struct { At token.Loc - Stmts []Stmt[any] + Stmts []Stmt } type CondNode struct { - Cond Expr[any] + At token.Loc + Cond Expr Then BlockNode } -- cgit 1.4.1