Commit 1e39eb07 authored by Alex Robinson's avatar Alex Robinson

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

use package from out value
parents 4593478c 26d80cdb
...@@ -195,8 +195,8 @@ func (g *conversionGenerator) generateConversionsForMap(inType, outType reflect. ...@@ -195,8 +195,8 @@ func (g *conversionGenerator) generateConversionsForMap(inType, outType reflect.
} }
inValue := inType.Elem() inValue := inType.Elem()
outValue := outType.Elem() outValue := outType.Elem()
g.addImportByPath(inKey.PkgPath()) g.addImportByPath(inValue.PkgPath())
g.addImportByPath(outKey.PkgPath()) g.addImportByPath(outValue.PkgPath())
if err := g.generateConversionsBetween(inValue, outValue); err != nil { if err := g.generateConversionsBetween(inValue, outValue); err != nil {
return err return err
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment