Fix control flow graph for unary expressions

This commit is contained in:
Marc Vertes
2018-09-03 16:44:45 +02:00
parent fef99903de
commit 285f8ae818
2 changed files with 19 additions and 0 deletions

15
_test/struct7.go Normal file
View File

@@ -0,0 +1,15 @@
package main
type Opt struct {
b bool
}
type T struct {
i int
opt Opt
}
func main() {
a := T{}
println(a.i, a.opt.b)
}