mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +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(byte('x'))
|
||||
printItf("foo")
|
||||
printItf(Foo(18))
|
||||
printItf(*thing)
|
||||
printItf(thing)
|
||||
printItf(Stringer(thing))
|
||||
|
||||
Vendored
+1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user