Merge pull request #8268 from hashicorp/fix_hcl2_mapstructure_code

when using a slice of an imported field type, the Underlying still re…
pull/8280/head
Megan Marsh 7 years ago committed by GitHub
commit 2274f54ef1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -343,7 +343,7 @@ func getUsedImports(s *types.Struct) map[NamePath]*types.Package {
fieldType = p.Elem()
}
if p, ok := fieldType.(*types.Slice); ok {
fieldType = p.Underlying()
fieldType = p.Elem()
}
namedType, ok := fieldType.(*types.Named)
if !ok {

Loading…
Cancel
Save