From 59bb5c26709127dde2b5dceeb12ce2d656fe58c0 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Thu, 9 Aug 2018 08:47:37 -0700 Subject: hclwrite: Fix NewExpressionAbsTraversal signature It is still not implemented, but at least now it is declared with the correct return type. --- hclwrite/ast_expression.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hclwrite') diff --git a/hclwrite/ast_expression.go b/hclwrite/ast_expression.go index c1494f7..cdd6e48 100644 --- a/hclwrite/ast_expression.go +++ b/hclwrite/ast_expression.go @@ -40,7 +40,7 @@ func NewExpressionLiteral(val cty.Value) *Expression { // NewExpressionAbsTraversal constructs an expression that represents the // given traversal, which must be absolute or this function will panic. -func NewExpressionAbsTraversal(traversal hcl.Traversal) { +func NewExpressionAbsTraversal(traversal hcl.Traversal) *Expression { panic("NewExpressionAbsTraversal not yet implemented") } -- cgit v1.2.3