hclwrite: Fix NewExpressionAbsTraversal signature

It is still not implemented, but at least now it is declared with the
correct return type.
This commit is contained in:
Martin Atkins 2018-08-09 08:47:37 -07:00
parent c8c208e083
commit 59bb5c2670

View File

@ -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")
}