aboutsummaryrefslogtreecommitdiffhomepage
path: root/testdata/print.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2018-09-25 14:24:44 +0200
committerAyke van Laethem <[email protected]>2018-09-25 14:24:44 +0200
commit4731f2f78783d25d2d5bfcd243a725d867ae7ffb (patch)
tree8df00bb9e5eeb6e49b956801362b6dc6a2af20be /testdata/print.go
parent12fb4f3f91a10d7b6c8af0bda4a41cac34af5395 (diff)
downloadtinygo-4731f2f78783d25d2d5bfcd243a725d867ae7ffb.tar.gz
tinygo-4731f2f78783d25d2d5bfcd243a725d867ae7ffb.zip
testdata: add better tests for struct expanding
Diffstat (limited to 'testdata/print.go')
-rw-r--r--testdata/print.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/testdata/print.go b/testdata/print.go
index 39c951afa..a8d2ada66 100644
--- a/testdata/print.go
+++ b/testdata/print.go
@@ -29,6 +29,9 @@ func main() {
// print float64
println(3.14)
+ // print interface
+ println(interface{}(nil))
+
// print map
println(map[string]int{"three": 3, "five": 5})