package pkg

import "encoding/json"

func fn1(i3 interface{}) {
	var v map[string]interface{}
	var i1 interface{} = v
	var i2 interface{} = &v
	p := &v
	json.Unmarshal([]byte(`{}`), v) //@ diag(`Unmarshal expects to unmarshal into a pointer`)
	json.Unmarshal([]byte(`{}`), &v)
	json.Unmarshal([]byte(`{}`), i1) //@ diag(`Unmarshal expects to unmarshal into a pointer`)
	json.Unmarshal([]byte(`{}`), i2)
	json.Unmarshal([]byte(`{}`), i3)
	json.Unmarshal([]byte(`{}`), p)

	json.NewDecoder(nil).Decode(v) //@ diag(`Decode expects to unmarshal into a pointer`)
}
