Codebase list golang-github-imdario-mergo / 6eebc441-6f30-4abd-ad90-599740039d62/main issue174_test.go
6eebc441-6f30-4abd-ad90-599740039d62/main

Tree @6eebc441-6f30-4abd-ad90-599740039d62/main (Download .tar.gz)

issue174_test.go @6eebc441-6f30-4abd-ad90-599740039d62/main

6e78443
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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)
	}
}