-
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
function/stdlib: FormatFunc and FormatListFunc can handle DynamicPseu…
…doType We didn't previously include AllowDynamicType: true on the variadic parameters for these functions and so the function system assumed that this code couldn't deal with unspecified types at all. However, the formatter is actually written to tolerate all possible values and do _something_ reasonable with all of them, so we can safely opt in to handle dynamic-typed arguments ourselves. In particular that means that `cty.NullVal(cty.DynamicPseudoType)` is now treated the same way as null values of known types, and `cty.DynamicVal` is treated the same way as unknown values of known types.
- Loading branch information
1 parent
6edebd2
commit 8920baa
Showing
3 changed files
with
132 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters