Return cty.DynamicPseudoType instead

This commit is contained in:
Radek Simko 2018-10-23 12:42:46 +02:00
parent 4856d81300
commit b41cda7d7a
No known key found for this signature in database
GPG Key ID: 1F1C84FE689A88D7
1 changed files with 1 additions and 1 deletions

View File

@ -516,7 +516,7 @@ var LookupFunc = function.New(&function.Spec{
switch {
case ty.IsObjectType():
if !args[1].IsKnown() {
return args[2].Type(), nil
return cty.DynamicPseudoType, nil
}
key := args[1].AsString()