Skip to content

Commit 72273ad

Browse files
authored
Fix a bug in reflect.Into. (#35)
We need to be setting the Elem, not the pointer value.
1 parent 5905319 commit 72273ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/reflect/reflection.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func Into(ctx context.Context, val tftypes.Value, target interface{}, opts Optio
3030
if err != nil {
3131
return err
3232
}
33-
v.Set(result)
33+
v.Elem().Set(result)
3434
return nil
3535
}
3636

0 commit comments

Comments
 (0)