From 67d38b3b9f2afb4cf4a542eff9a6d2bad567b2a7 Mon Sep 17 00:00:00 2001 From: mgechev Date: Sat, 2 Jun 2018 09:45:19 -0700 Subject: [PATCH] Add test case for unexported-return --- fixtures/golint/unexported-return.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/fixtures/golint/unexported-return.go b/fixtures/golint/unexported-return.go index 9aa4efa..ef20638 100644 --- a/fixtures/golint/unexported-return.go +++ b/fixtures/golint/unexported-return.go @@ -17,6 +17,16 @@ func ExpErr() error { // ok func (hidden) ExpOnHidden() hidden { // ok } +// Interface is exported. +type Interface interface { + ExpOnHidden() +} + +// ExportedAsInterface returns a hidden type as an exported interface, which is fine. +func ExportedAsInterface() Interface { // ok + return Exported() +} + // T is another test type. type T struct{}