浏览代码

Enhance test for overlap and embedded

Tim Hockin 8 年之前
父节点
当前提交
9ec64591b6
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      output_tests/struct/anonymous/overlap/different_levels/types.go

+ 7 - 2
output_tests/struct/anonymous/overlap/different_levels/types.go

@@ -1,10 +1,15 @@
 package test
 package test
 
 
-type Embedded struct {
+type E1 struct {
 	F1 int32
 	F1 int32
 }
 }
 
 
+type E2 struct {
+	F2 string
+}
+
 type T struct {
 type T struct {
+	E1
+	E2
 	F1 string
 	F1 string
-	Embedded
 }
 }