Package list golang-github-imdario-mergo / 6c9785ee-345b-4ec8-967f-e663b9c4f399/upstream issue174_test.go
6c9785ee-345b-4ec8-967f-e663b9c4f399/upstream

Tree @6c9785ee-345b-4ec8-967f-e663b9c4f399/upstream (Download .tar.gz)

issue174_test.go @6c9785ee-345b-4ec8-967f-e663b9c4f399/upstreamraw · history · blame

package mergo_test

import (
	"testing"

	"github.com/imdario/mergo"
)

type structWithBlankField struct {
	_ struct{}
	A struct{}
}

func TestIssue174(t *testing.T) {
	dst := structWithBlankField{}
	src := structWithBlankField{}

	if err := mergo.Merge(&dst, src, mergo.WithOverride); err != nil {
		t.Error(err)
	}
}