aboutsummaryrefslogtreecommitdiffhomepage
path: root/testdata
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2018-11-24 22:13:01 +0100
committerAyke van Laethem <[email protected]>2018-11-24 22:13:01 +0100
commitf0fb1bd41a149592beb489974d06993feb9abdc1 (patch)
tree6f53b42c82770f63accf7ec4f22bdbe4a7663de3 /testdata
parentdbb32114854383ed192411ae322f214aff7142bb (diff)
downloadtinygo-f0fb1bd41a149592beb489974d06993feb9abdc1.tar.gz
tinygo-f0fb1bd41a149592beb489974d06993feb9abdc1.zip
compiler: fix binops on named types in struct fields
Diffstat (limited to 'testdata')
-rw-r--r--testdata/binop.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/testdata/binop.go b/testdata/binop.go
index 64a339539..e98545f9a 100644
--- a/testdata/binop.go
+++ b/testdata/binop.go
@@ -58,8 +58,10 @@ var s2 = Struct2{"foo", 0.0, 5}
var a1 = [2]int{1, 2}
+type Int int
+
type Struct1 struct {
- i int
+ i Int
b bool
}