bradleyfalzon / apicompat

apicompat checks recent changes to a Go project for backwards incompatible changes
https://abicheck.bradleyf.id.au
MIT License
179 stars 5 forks source link

Check compatibility of returned an unexported types #6

Closed bradleyfalzon closed 8 years ago

bradleyfalzon commented 8 years ago
package example

type s struct {}

func (s) Method() int {}

func New() s {return s}
package example

type s struct {}

func (s) Method() error {}

func New() s {return s}

This is a breaking change.

bradleyfalzon commented 8 years ago

Fixed in cc63e3f3e355b4d7da5d75e93dcafe68be57c5ed