From 73709922b29fdd35fba58a67a2d85111f9cb9225 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Sun, 7 Oct 2018 19:30:36 +0200 Subject: [PATCH] main: extra interface test for simple named types --- testdata/interface.go | 1 + testdata/interface.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/testdata/interface.go b/testdata/interface.go index 701b6e29..63e3d5f2 100644 --- a/testdata/interface.go +++ b/testdata/interface.go @@ -7,6 +7,7 @@ func main() { printItf(5) printItf(byte('x')) printItf("foo") + printItf(Foo(18)) printItf(*thing) printItf(thing) printItf(Stringer(thing)) diff --git a/testdata/interface.txt b/testdata/interface.txt index 2791425b..c9bce6be 100644 --- a/testdata/interface.txt +++ b/testdata/interface.txt @@ -3,6 +3,7 @@ Thing.Print: foo is int: 5 is byte: 120 is string: foo +is Foo: 18 is Thing: foo is *Thing: foo is *Thing: foo