mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-15 08:23:41 +00:00
main: extra interface test for simple named types
This commit is contained in:
Vendored
+1
@@ -7,6 +7,7 @@ func main() {
|
|||||||
printItf(5)
|
printItf(5)
|
||||||
printItf(byte('x'))
|
printItf(byte('x'))
|
||||||
printItf("foo")
|
printItf("foo")
|
||||||
|
printItf(Foo(18))
|
||||||
printItf(*thing)
|
printItf(*thing)
|
||||||
printItf(thing)
|
printItf(thing)
|
||||||
printItf(Stringer(thing))
|
printItf(Stringer(thing))
|
||||||
|
|||||||
Vendored
+1
@@ -3,6 +3,7 @@ Thing.Print: foo
|
|||||||
is int: 5
|
is int: 5
|
||||||
is byte: 120
|
is byte: 120
|
||||||
is string: foo
|
is string: foo
|
||||||
|
is Foo: 18
|
||||||
is Thing: foo
|
is Thing: foo
|
||||||
is *Thing: foo
|
is *Thing: foo
|
||||||
is *Thing: foo
|
is *Thing: foo
|
||||||
|
|||||||
Reference in New Issue
Block a user