diff options
Diffstat (limited to 'testdata/interface.go')
-rw-r--r-- | testdata/interface.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testdata/interface.go b/testdata/interface.go index fa0a99c69..c23af4fd1 100644 --- a/testdata/interface.go +++ b/testdata/interface.go @@ -33,6 +33,10 @@ func main() { // https://github.com/tinygo-org/tinygo/issues/309 itf = linkedList{} + // Test bugfix for assertion on named empty interface: + // https://github.com/tinygo-org/tinygo/issues/453 + _, _ = itf.(Empty) + var n int var f float32 var interfaceEqualTests = []struct { @@ -251,3 +255,5 @@ func (s SleepBlocker) Sleep() { type StaticBlocker interface { Sleep() } + +type Empty interface{} |