Merge pull request #12488 from pweil-/fix-conversions

use package from out value
This commit is contained in:
Alex Robinson 2015-08-10 11:52:48 -07:00
commit 1e39eb07e1

View File

@ -195,8 +195,8 @@ func (g *conversionGenerator) generateConversionsForMap(inType, outType reflect.
}
inValue := inType.Elem()
outValue := outType.Elem()
g.addImportByPath(inKey.PkgPath())
g.addImportByPath(outKey.PkgPath())
g.addImportByPath(inValue.PkgPath())
g.addImportByPath(outValue.PkgPath())
if err := g.generateConversionsBetween(inValue, outValue); err != nil {
return err
}