diff --git a/lang/funcs/collection.go b/lang/funcs/collection.go index 3ad0d22e31..1f558f6272 100644 --- a/lang/funcs/collection.go +++ b/lang/funcs/collection.go @@ -856,7 +856,7 @@ var ValuesFunc = function.New(&function.Spec{ } if len(values) == 0 { - return cty.ListValEmpty(cty.DynamicPseudoType), nil + return cty.ListValEmpty(retType), nil } return cty.ListVal(values), nil